Kaydet (Commit) e5b654a0 authored tarafından Robert Roth's avatar Robert Roth Kaydeden (comit) Andrzej Hunt

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
üst 2c819313
......@@ -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;
}
......
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