diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-30 21:29:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-02 10:22:33 +0100 |
commit | 0321dbb9be72f92c02919457cdc3c4e76cfbd11d (patch) | |
tree | da8db09d364c072899f7707d42144ed2ab2389ec /svx | |
parent | 6d40c515fdf86d807c199ff4179b9c862a9fe5b2 (diff) |
Resolves: tdf#99324 let sidebar toggle auto-mnemonics on/off with alt
this returns things to passing the alt to the thing with the focus
and depends on ::Command handlers passing the alt-press/release back
up through the Command hierarchy to get to the default top-level
handler eventually
Change-Id: I869120f43810adfa2fac4670c2db143b790a1f9b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/PanelLayout.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx index f4ec456bd6af..9e04f33b31ba 100644 --- a/svx/source/sidebar/PanelLayout.cxx +++ b/svx/source/sidebar/PanelLayout.cxx @@ -110,4 +110,11 @@ void PanelLayout::setPosSizePixel(long nX, long nY, long nWidth, long nHeight, P VclContainer::setLayoutAllocation(*pChild, Point(0, 0), Size(nWidth, nHeight)); } +bool PanelLayout::Notify(NotifyEvent& rNEvt) +{ + if (rNEvt.GetType() == MouseNotifyEvent::COMMAND) + Accelerator::ToggleMnemonicsOnHierarchy(*rNEvt.GetCommandEvent(), this); + return Control::Notify( rNEvt ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |