summaryrefslogtreecommitdiff
path: root/include/sfx2/sidebar/SidebarController.hxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-08-26 18:01:09 -0800
committerCaolán McNamara <caolanm@redhat.com>2018-08-29 16:38:28 +0200
commit2c92b886b7538c4786a4d9a33cbcfe694daf1f62 (patch)
tree618e2aec5e5e37f6798035c10790ec75254ec3dc /include/sfx2/sidebar/SidebarController.hxx
parent17d8f6b0d78c11ac40a335917b3576f13d1e1b9d (diff)
tdf#119461 Fix focus hidden on deck collapse
Makes Space key behavior the same as mouse click. Focus remains on the tab button when the deck collapses. Makes Enter key never collapses the deck but to open if collapsed and always place focus on the first panel title. Change-Id: Id6d7624e88b421dcfc62f3d0e79986f10c76a65d Reviewed-on: https://gerrit.libreoffice.org/59616 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/sidebar/SidebarController.hxx')
-rw-r--r--include/sfx2/sidebar/SidebarController.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index 33cdfc395200..8274605ba03f 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -125,7 +125,7 @@ public:
/** Show only the tab bar, not the deck.
*/
- void RequestCloseDeck();
+ void RequestCloseDeck(bool bFocusMenuTab = false);
/** Open the deck area and restore the parent window to its old width.
*/
@@ -135,6 +135,8 @@ public:
*/
bool IsDeckVisible(const OUString& rsDeckId);
+ bool IsDeckOpen(const sal_Int32 nIndex = -1);
+
FocusManager& GetFocusManager() { return maFocusManager;}
ResourceManager* GetResourceManager() { return mpResourceManager.get();}