fdo#64337 Do not show empty findbar in startcenter.
Using the shortcut for search on the start center displayed an empty toolbar on the start center. This commit adds a check to see whether the command to execute in the startcenter is FocusToFindbar, and if it is, it skips executing it. Change-Id: I0835e87d4a1eef0fc9ff17c184b531592b3e2d5a
This commit is contained in:
committed by
Andrzej Hunt
parent
2c8193137a
commit
e5b654a056
@@ -355,7 +355,8 @@ bool BackingWindow::Notify( NotifyEvent& rNEvt )
|
||||
}
|
||||
const KeyEvent* pEvt = rNEvt.GetKeyEvent();
|
||||
const KeyCode& rKeyCode(pEvt->GetKeyCode());
|
||||
if( pEvt && mpAccExec->execute(rKeyCode) )
|
||||
const OUString aCommand = mpAccExec->findCommand(svt::AcceleratorExecute::st_VCLKey2AWTKey(rKeyCode));
|
||||
if((aCommand != "vnd.sun.star.findbar:FocusToFindbar") && pEvt && mpAccExec->execute(rKeyCode))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user