|
|
@ -72,7 +72,6 @@ pfGUIEditBoxMod::pfGUIEditBoxMod() |
|
|
|
{ |
|
|
|
{ |
|
|
|
SetFlag( kWantsInterest ); |
|
|
|
SetFlag( kWantsInterest ); |
|
|
|
SetFlag( kTakesSpecialKeys ); |
|
|
|
SetFlag( kTakesSpecialKeys ); |
|
|
|
fIgnoreNextKey = false; |
|
|
|
|
|
|
|
fEscapedFlag = false; |
|
|
|
fEscapedFlag = false; |
|
|
|
fFirstHalfExitKeyPushed = false; |
|
|
|
fFirstHalfExitKeyPushed = false; |
|
|
|
fSpecialCaptureKeyEventMode = false; |
|
|
|
fSpecialCaptureKeyEventMode = false; |
|
|
@ -241,13 +240,6 @@ hsBool pfGUIEditBoxMod::HandleKeyPress( wchar_t key, uint8_t modifiers ) |
|
|
|
if( fBuffer == nil ) |
|
|
|
if( fBuffer == nil ) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
if( fIgnoreNextKey ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// So we don't process keys that already got handled by HandleKeyEvent()
|
|
|
|
|
|
|
|
fIgnoreNextKey = false; |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int i = wcslen( fBuffer ); |
|
|
|
int i = wcslen( fBuffer ); |
|
|
|
|
|
|
|
|
|
|
|
// Insert character at the current cursor position, then inc the cursor by one
|
|
|
|
// Insert character at the current cursor position, then inc the cursor by one
|
|
|
@ -330,7 +322,6 @@ hsBool pfGUIEditBoxMod::HandleKeyEvent( pfGameGUIMgr::EventType event, plKeyDef |
|
|
|
// done capturing... tell the handler
|
|
|
|
// done capturing... tell the handler
|
|
|
|
DoSomething(); |
|
|
|
DoSomething(); |
|
|
|
} |
|
|
|
} |
|
|
|
fIgnoreNextKey = true; |
|
|
|
|
|
|
|
fFirstHalfExitKeyPushed = false; |
|
|
|
fFirstHalfExitKeyPushed = false; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
@ -412,13 +403,7 @@ hsBool pfGUIEditBoxMod::HandleKeyEvent( pfGameGUIMgr::EventType event, plKeyDef |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
fIgnoreNextKey = false; |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fIgnoreNextKey = true; |
|
|
|
|
|
|
|
IUpdate(); |
|
|
|
IUpdate(); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|