[Libreoffice-commits] core.git: sfx2/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jan 20 22:25:07 UTC 2020
sfx2/source/sidebar/SidebarController.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 0f4729f5d4f52b8b30af7003b846e0d4cd0844c0
Author: Jim Raykowski <raykowj at gmail..com>
AuthorDate: Sat Dec 21 00:02:24 2019 -0900
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Mon Jan 20 23:24:29 2020 +0100
Show accel key for sidebar dock/undock menu item
Change-Id: I7d9f9860fa94eeb4b8a379de8c3d3ddd5239a21d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85671
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj at gmail.com>
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 9c20a8232269..da772fa9b4eb 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -1116,9 +1116,15 @@ SidebarController::CreatePopupMenu(const ::std::vector<TabBar::DeckMenuData>& rM
{
// Add entry for docking or un-docking the tool panel.
if (mpParentWindow->IsFloatingMode())
+ {
pMenu->InsertItem(MID_LOCK_TASK_PANEL, SfxResId(STR_SFX_DOCK));
+ pMenu->SetAccelKey(MID_LOCK_TASK_PANEL, vcl::KeyCode(KEY_F10, true, true, false, false));
+ }
else
+ {
pMenu->InsertItem(MID_UNLOCK_TASK_PANEL, SfxResId(STR_SFX_UNDOCK));
+ pMenu->SetAccelKey(MID_UNLOCK_TASK_PANEL, vcl::KeyCode(KEY_F10, true, true, false, false));
+ }
}
pMenu->InsertItem(MID_HIDE_SIDEBAR, SfxResId(SFX_STR_SIDEBAR_HIDE_SIDEBAR));
More information about the Libreoffice-commits
mailing list