summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-30 21:29:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-02 10:22:33 +0100
commit0321dbb9be72f92c02919457cdc3c4e76cfbd11d (patch)
treeda8db09d364c072899f7707d42144ed2ab2389ec /sfx2
parent6d40c515fdf86d807c199ff4179b9c862a9fe5b2 (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 'sfx2')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx13
-rw-r--r--sfx2/source/dialog/backingwindow.hxx1
2 files changed, 0 insertions, 14 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 6059ca158307..2d0940a9049e 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -163,18 +163,6 @@ BackingWindow::BackingWindow( vcl::Window* i_pParent ) :
// init background
SetBackground();
-
- GetParent()->AddEventListener(LINK(this, BackingWindow, WindowEventListener));
-}
-
-IMPL_LINK_TYPED(BackingWindow, WindowEventListener, VclWindowEvent&, rEvent, void)
-{
- if (rEvent.GetId() != VCLEVENT_WINDOW_COMMAND)
- return;
- CommandEvent* pCmdEvt = static_cast<CommandEvent*>(rEvent.GetData());
- if (pCmdEvt->GetCommand() != CommandEventId::ModKeyChange)
- return;
- Accelerator::ToggleMnemonicsOnHierarchy(*pCmdEvt, this);
}
BackingWindow::~BackingWindow()
@@ -184,7 +172,6 @@ BackingWindow::~BackingWindow()
void BackingWindow::dispose()
{
- GetParent()->RemoveEventListener(LINK(this, BackingWindow, WindowEventListener));
// deregister drag&drop helper
if (mxDropTargetListener.is())
{
diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx
index 2a12b845fc78..abb68e9c765b 100644
--- a/sfx2/source/dialog/backingwindow.hxx
+++ b/sfx2/source/dialog/backingwindow.hxx
@@ -106,7 +106,6 @@ class BackingWindow : public vcl::Window, public VclBuilderContainer
DECL_LINK_TYPED(CreateContextMenuHdl, ThumbnailViewItem*, void);
DECL_LINK_TYPED(OpenTemplateHdl, ThumbnailViewItem*, void);
DECL_LINK_TYPED(EditTemplateHdl, ThumbnailViewItem*, void);
- DECL_LINK_TYPED(WindowEventListener, VclWindowEvent&, void);
void initControls();