Make dock/undock short cut work from sidebar tabbar

Makes Shift+Ctrl+F10 short cut to dock/undock sidebar work from the
sidebar tabbar

Change-Id: Idd895e35e65f4cd66b7af16c39f5b0fd69fb5796
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85687
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
This commit is contained in:
Jim Raykowski 2019-12-21 18:41:26 -09:00 committed by Jim Raykowski
parent 6a308d2bfa
commit 51f8e04eaa

View file

@ -245,7 +245,8 @@ bool TabBar::EventNotify(NotifyEvent& rEvent)
mpAccel->init(comphelper::getProcessComponentContext(), mxFrame);
}
const OUString aCommand(mpAccel->findCommand(svt::AcceleratorExecute::st_VCLKey2AWTKey(rKeyCode)));
if (".uno:Sidebar" == aCommand)
if (".uno:Sidebar" == aCommand ||
(rKeyCode.IsMod1() && rKeyCode.IsShift() && rKeyCode.GetCode() == KEY_F10))
return vcl::Window::EventNotify(rEvent);
return true;
}