summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-08-28 14:18:44 -0800
committerMaxim Monastirsky <momonasmon@gmail.com>2018-08-30 15:43:35 +0200
commitb9c38b78025c1abd5bf155c66f878d42c0eccb16 (patch)
treea012a2584002d411ba032e6f12e5a26c18e37055 /sfx2/source/sidebar
parentb914c4c98bfca32168ff05fec7cc687c95754d36 (diff)
tdf#119577 Ignore escape key press on sidebar toolboxes not handled by
...focus manager. This prevents escape key press on More Options tool box in some panel title bars from sending focus to doc view. Change-Id: Iaac9bf31494e4e35f30350580acaa9f42ead49a0 Reviewed-on: https://gerrit.libreoffice.org/59783 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r--sfx2/source/sidebar/SidebarToolBox.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx
index ba44d821371e..7182b479e282 100644
--- a/sfx2/source/sidebar/SidebarToolBox.cxx
+++ b/sfx2/source/sidebar/SidebarToolBox.cxx
@@ -137,6 +137,12 @@ bool SidebarToolBox::EventNotify (NotifyEvent& rEvent)
return ToolBox::EventNotify(rEvent);
}
+void SidebarToolBox::KeyInput(const KeyEvent& rKEvt)
+{
+ if (KEY_ESCAPE != rKEvt.GetKeyCode().GetCode())
+ ToolBox::KeyInput(rKEvt);
+}
+
void SidebarToolBox::CreateController (
const sal_uInt16 nItemId,
const css::uno::Reference<css::frame::XFrame>& rxFrame,