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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 27 06:37:42 UTC 2018


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

New commits:
commit e14c7fa64eff20bf5fc0a97600a0dd58531e1046
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Tue Sep 25 23:30:40 2018 -0800
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Sep 27 08:37:15 2018 +0200

    tdf#120122 Fix key input being passed to doc view from floating sidebar
    
    ...tab bar
    
    Change-Id: Iae327e0de3a129f28315a3fe2961a6ae572e4056
    Reviewed-on: https://gerrit.libreoffice.org/61020
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 9487e8079c7c..7930f98ebb72 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -229,7 +229,11 @@ void TabBar::DataChanged (const DataChangedEvent& rDataChangedEvent)
 
 bool TabBar::EventNotify(NotifyEvent& rEvent)
 {
-    if(rEvent.GetType() == MouseNotifyEvent::COMMAND)
+    MouseNotifyEvent nType = rEvent.GetType();
+    if (MouseNotifyEvent::KEYINPUT == nType)
+        return true;
+
+    if(MouseNotifyEvent::COMMAND == nType)
     {
         const CommandEvent& rCommandEvent = *rEvent.GetCommandEvent();
         if(rCommandEvent.GetCommand() == CommandEventId::Wheel)


More information about the Libreoffice-commits mailing list