Kaydet (Commit) f6b2932e authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Jan Holesovsky

findbar: Make Escape the only key to return back to the document.

üst c569215d
...@@ -132,12 +132,10 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt ) ...@@ -132,12 +132,10 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
case EVENT_KEYINPUT: case EVENT_KEYINPUT:
{ {
const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent(); const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
sal_Bool bCtrl = pKeyEvent->GetKeyCode().IsMod1();
sal_Bool bAlt = pKeyEvent->GetKeyCode().IsMod2();
sal_Bool bShift = pKeyEvent->GetKeyCode().IsShift(); sal_Bool bShift = pKeyEvent->GetKeyCode().IsShift();
sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode(); sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();
if ( (bCtrl && bAlt && KEY_F == nCode) || KEY_ESCAPE == nCode ) if ( KEY_ESCAPE == 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