summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-09-25 23:30:40 -0800
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-27 08:37:15 +0200
commite14c7fa64eff20bf5fc0a97600a0dd58531e1046 (patch)
treeaeae2f5a445a423e60176c79528846d0429df105
parentec2cc68a666b573e226fce94919041538345cd9b (diff)
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@collabora.co.uk>
-rw-r--r--sfx2/source/sidebar/TabBar.cxx6
1 files changed, 5 insertions, 1 deletions
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)