[Libreoffice-commits] core.git: sfx2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 5 11:52:04 UTC 2018
sfx2/source/sidebar/SidebarDockingWindow.cxx | 4 +++-
sfx2/source/sidebar/TabBar.cxx | 10 +++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
New commits:
commit 26ed394abc8cebbb78f0ff69fba9ce35a006a511
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Tue Oct 2 12:54:12 2018 -0800
Commit: Heiko Tietze <tietze.heiko at gmail.com>
CommitDate: Fri Oct 5 13:51:38 2018 +0200
tdf#85850 Pass CTRL+F5 event in sidebar to parent classes
Change-Id: I86e1fba17402d0a5f06d7942cf0733b0f2c924ba
Reviewed-on: https://gerrit.libreoffice.org/61276
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <tietze.heiko at gmail.com>
Tested-by: Heiko Tietze <tietze.heiko at gmail.com>
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx
index fe24d5523ad8..9c1f9c66dc32 100644
--- a/sfx2/source/sidebar/SidebarDockingWindow.cxx
+++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx
@@ -127,8 +127,10 @@ bool SidebarDockingWindow::EventNotify(NotifyEvent& rEvent)
mpSidebarController->GetResourceManager()->GetPanelDescriptor( "StyleListPanel" );
if ( xPanelDescriptor && mpSidebarController->IsDeckVisible( xPanelDescriptor->msDeckId ) )
Close();
+ return true;
}
- return true;
+ if ( !( ( KEY_MOD1 == rKeyCode.GetModifier() ) && ( KEY_F5 == rKeyCode.GetCode() ) ) )
+ return true;
}
else if (MouseNotifyEvent::MOUSEBUTTONDOWN == nType)
{
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 7930f98ebb72..c69b6b17bb97 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -230,10 +230,14 @@ void TabBar::DataChanged (const DataChangedEvent& rDataChangedEvent)
bool TabBar::EventNotify(NotifyEvent& rEvent)
{
MouseNotifyEvent nType = rEvent.GetType();
- if (MouseNotifyEvent::KEYINPUT == nType)
+ if(MouseNotifyEvent::KEYINPUT == nType)
+ {
+ const vcl::KeyCode& rKeyCode = rEvent.GetKeyEvent()->GetKeyCode();
+ if((KEY_MOD1 == rKeyCode.GetModifier()) && (KEY_F5 == rKeyCode.GetCode()))
+ return vcl::Window::EventNotify(rEvent);
return true;
-
- if(MouseNotifyEvent::COMMAND == nType)
+ }
+ else if(MouseNotifyEvent::COMMAND == nType)
{
const CommandEvent& rCommandEvent = *rEvent.GetCommandEvent();
if(rCommandEvent.GetCommand() == CommandEventId::Wheel)
More information about the Libreoffice-commits
mailing list