Kaydet (Commit) 26ed394a authored tarafından Jim Raykowski's avatar Jim Raykowski Kaydeden (comit) Heiko Tietze

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: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
Tested-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
üst a20ec3b5
......@@ -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)
{
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment