Kaydet (Commit) 1b375d58 authored tarafından Joren De Cuyper's avatar Joren De Cuyper Kaydeden (comit) Radek Doulík

fdo#59101 - [Feature Request] Make Find hotkey (Ctrl+F) a toggle command

Change-Id: I8cf518a18e4846f9e687d05c7f7c0eb774abba6f
Reviewed-on: https://gerrit.libreoffice.org/1751Reviewed-by: 's avatarRadek Doulík <rodo@novell.com>
Tested-by: 's avatarRadek Doulík <rodo@novell.com>
üst c2a249f3
...@@ -138,7 +138,7 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt ) ...@@ -138,7 +138,7 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
sal_Bool bMod1 = pKeyEvent->GetKeyCode().IsMod1(); sal_Bool bMod1 = pKeyEvent->GetKeyCode().IsMod1();
sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode(); sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();
if ( KEY_ESCAPE == nCode ) if ( KEY_ESCAPE == nCode || (bMod1 && (KEY_F == nCode)) )
{ {
nRet = 1; nRet = 1;
GrabFocusToDocument(); GrabFocusToDocument();
......
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