[Libreoffice-commits] core.git: sfx2/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 21 05:19:08 UTC 2020


 sfx2/source/sidebar/TabBar.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 51f8e04eaaea50b779e3882e87628a6e625e0fd8
Author:     Jim Raykowski <raykowj at gmail..com>
AuthorDate: Sat Dec 21 18:41:26 2019 -0900
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Tue Jan 21 06:18:31 2020 +0100

    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 at gmail.com>

diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 96b00f54939e..4cc79c8bcd4c 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -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;
     }


More information about the Libreoffice-commits mailing list