diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 12:03:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 17:33:48 +0200 |
commit | 75923e132479b64320f78c6913e5d7241c69ad26 (patch) | |
tree | 16c05c58e5ba3f670ee3d4bef4d742701b5f1968 /sw | |
parent | d61214b7a864fb5006f1efa579383f3cc1c5f9cd (diff) |
drop SwTOXEntryTabPage::EventNotify
Change-Id: If1bf562ad7e385b4faf0a32b02ac33c8095df8de
Reviewed-on: https://gerrit.libreoffice.org/79454
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 19 | ||||
-rw-r--r-- | sw/source/uibase/inc/swuicnttab.hxx | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index dbaa2c0d2243..d8527538469b 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2182,25 +2182,6 @@ void SwTOXEntryTabPage::SetFocus2theAllBtn() m_xAllLevelsPB->grab_focus(); } -bool SwTOXEntryTabPage::EventNotify( NotifyEvent& rNEvt ) -{ - if ( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT ) - { - const KeyEvent& rKEvt = *rNEvt.GetKeyEvent(); - vcl::KeyCode aCode = rKEvt.GetKeyCode(); - if ( (aCode.GetCode() == KEY_F4) && aCode.IsShift() && !aCode.IsMod1() && !aCode.IsMod2() ) - { - if (SwTOXWidget* pActiveControl = m_xTokenWIN->GetActiveControl()) - { - pActiveControl->GrabFocus(); - } - } - - } - - return SfxTabPage::EventNotify(rNEvt); -} - // This function initializes the default value in the Token // put here the UI dependent initializations IMPL_LINK(SwTOXEntryTabPage, InsertTokenHdl, weld::Button&, rBtn, void) diff --git a/sw/source/uibase/inc/swuicnttab.hxx b/sw/source/uibase/inc/swuicnttab.hxx index 84b90945e2ac..b3613020a1db 100644 --- a/sw/source/uibase/inc/swuicnttab.hxx +++ b/sw/source/uibase/inc/swuicnttab.hxx @@ -404,7 +404,6 @@ public: void PreTokenButtonRemoved(const SwFormToken& rToken); void SetFocus2theAllBtn(); - virtual bool EventNotify( NotifyEvent& rNEvt ) override; }; class SwTOXStylesTabPage : public SfxTabPage |