|
|
@ -458,11 +458,11 @@ hsBool pfGUIEditBoxMod::HandleKeyEvent( pfGameGUIMgr::EventType event, plKeyDef |
|
|
|
{ |
|
|
|
{ |
|
|
|
fFirstHalfExitKeyPushed = false; |
|
|
|
fFirstHalfExitKeyPushed = false; |
|
|
|
// Use arrow keys to do our dirty work
|
|
|
|
// Use arrow keys to do our dirty work
|
|
|
|
if( key == KEY_UP || key == KEY_HOME ) |
|
|
|
if( key == KEY_HOME ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SetCursorToHome(); |
|
|
|
SetCursorToHome(); |
|
|
|
} |
|
|
|
} |
|
|
|
else if( key == KEY_DOWN || key == KEY_END ) |
|
|
|
else if( key == KEY_END ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SetCursorToEnd(); |
|
|
|
SetCursorToEnd(); |
|
|
|
} |
|
|
|
} |
|
|
@ -502,6 +502,16 @@ hsBool pfGUIEditBoxMod::HandleKeyEvent( pfGameGUIMgr::EventType event, plKeyDef |
|
|
|
DoSomething(); // Query WasEscaped() to see if it was escape vs enter
|
|
|
|
DoSomething(); // Query WasEscaped() to see if it was escape vs enter
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else if (key == KEY_UP) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Send notify for python scripts
|
|
|
|
|
|
|
|
HandleExtendedEvent(kWantMessageHistoryUp); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (key == KEY_DOWN) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Send notify for python scripts
|
|
|
|
|
|
|
|
HandleExtendedEvent(kWantMessageHistoryDown); |
|
|
|
|
|
|
|
} |
|
|
|
else if (modifiers & pfGameGUIMgr::kCtrlDown)
|
|
|
|
else if (modifiers & pfGameGUIMgr::kCtrlDown)
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (key == KEY_C)
|
|
|
|
if (key == KEY_C)
|
|
|
|