diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-11-22 23:31:37 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2018-12-31 08:03:41 +0100 |
commit | cb834ae5c8d5dbecdbc3729bc21889d97d8b582f (patch) | |
tree | 7d8afb720a81ff0a136635c5de629f08d63c6f44 /include/sfx2 | |
parent | 639013342e216776d1c6a8a6ff3ce29d1355b8ea (diff) |
Provide keyboard navigation to Shortcuts tool box and Hamburger menu in
NotebookbarTabControl
Use Ctrl+Right/Left arrow to move focus among current notebookbar tab
control tab title, hamburger menu, and shortcuts tool box.
Change-Id: Ia7b22ff03fce7148eb411cfe9eaabc247b737cb5
Reviewed-on: https://gerrit.libreoffice.org/63875
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/notebookbar/NotebookbarTabControl.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sfx2/notebookbar/NotebookbarTabControl.hxx b/include/sfx2/notebookbar/NotebookbarTabControl.hxx index 2ff4d3c48974..f3411d769b71 100644 --- a/include/sfx2/notebookbar/NotebookbarTabControl.hxx +++ b/include/sfx2/notebookbar/NotebookbarTabControl.hxx @@ -27,6 +27,8 @@ public: NotebookbarTabControl( Window* pParent ); ~NotebookbarTabControl() override; + virtual void KeyInput( const KeyEvent& rKEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; virtual void StateChanged(StateChangedType nStateChange) override; virtual Size calculateRequisition() const override; @@ -36,6 +38,8 @@ private: const OUString& aModuleName, ToolBox* pShortcuts ); + void ArrowStops( sal_uInt16 nCode ); + DECL_LINK(OpenNotebookbarPopupMenu, NotebookBar*, void); css::uno::Reference<css::ui::XUIConfigurationListener> m_pListener; |