diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-02-04 14:12:32 -0900 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-02-05 10:40:59 +0100 |
commit | bcfc348663b04834fe8e6d6315f647be1595469a (patch) | |
tree | 31789487672b5577fc1a42294aea7118740b2cda | |
parent | 914a35e8467252da43f864c86b0a820d8c0bd38e (diff) |
tdf#115434 Fix key press misbehaviors in sidebar
This patch also is for tdf#98505 and tdf#84657
Change-Id: I6bc125ace035b2c8126f013a63bcc9498b06e08c
Reviewed-on: https://gerrit.libreoffice.org/49219
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | include/sfx2/sidebar/SidebarDockingWindow.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarDockingWindow.cxx | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx b/include/sfx2/sidebar/SidebarDockingWindow.hxx index 0a0a55c76c5e..3467df71c7b3 100644 --- a/include/sfx2/sidebar/SidebarDockingWindow.hxx +++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx @@ -36,6 +36,7 @@ public: vcl::Window* pParent, WinBits nBits); virtual ~SidebarDockingWindow() override; virtual void dispose() override; + virtual bool EventNotify(NotifyEvent& rEvent) override; using SfxDockingWindow::Close; diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx index 84a2834e5a34..05e7a3ab41a9 100644 --- a/sfx2/source/sidebar/SidebarDockingWindow.cxx +++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx @@ -104,6 +104,15 @@ SfxChildAlignment SidebarDockingWindow::CheckAlignment ( } } +bool SidebarDockingWindow::EventNotify(NotifyEvent& rEvent) +{ + MouseNotifyEvent nType = rEvent.GetType(); + if (MouseNotifyEvent::KEYINPUT == nType) + return true; + + return Window::EventNotify(rEvent); +} + } } // end of namespace sfx2::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |