From 0321dbb9be72f92c02919457cdc3c4e76cfbd11d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 30 Jul 2016 21:29:48 +0100 Subject: 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 --- svx/source/sidebar/PanelLayout.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'svx') 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: */ -- cgit