include/sfx2/sidebar/SidebarDockingWindow.hxx | 1 + sfx2/source/sidebar/SidebarDockingWindow.cxx | 9 +++++++++ 2 files changed, 10 insertions(+)
New commits: commit bcfc348663b04834fe8e6d6315f647be1595469a Author: Jim Raykowski <rayk...@gmail.com> Date: Sun Feb 4 14:12:32 2018 -0900 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 <c...@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> 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: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits