diff options
author | Jim Raykowski <raykowj@gmail..com> | 2019-12-21 00:02:24 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2020-01-20 23:24:29 +0100 |
commit | 0f4729f5d4f52b8b30af7003b846e0d4cd0844c0 (patch) | |
tree | aff3a169820c5d23bc3356e2cf563d9d1688a05b /sfx2 | |
parent | b894ec7fadb8ca6bf0b33fa9eee4b9303e8161d4 (diff) |
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@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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)); |