|
|
|
@ -458,11 +458,11 @@ hsBool pfGUIEditBoxMod::HandleKeyEvent( pfGameGUIMgr::EventType event, plKeyDef
|
|
|
|
|
{ |
|
|
|
|
fFirstHalfExitKeyPushed = false; |
|
|
|
|
// Use arrow keys to do our dirty work
|
|
|
|
|
if( key == KEY_UP || key == KEY_HOME ) |
|
|
|
|
if( key == KEY_HOME ) |
|
|
|
|
{ |
|
|
|
|
SetCursorToHome(); |
|
|
|
|
} |
|
|
|
|
else if( key == KEY_DOWN || key == KEY_END ) |
|
|
|
|
else if( key == KEY_END ) |
|
|
|
|
{ |
|
|
|
|
SetCursorToEnd(); |
|
|
|
|
} |
|
|
|
@ -502,6 +502,16 @@ hsBool pfGUIEditBoxMod::HandleKeyEvent( pfGameGUIMgr::EventType event, plKeyDef
|
|
|
|
|
DoSomething(); // Query WasEscaped() to see if it was escape vs enter
|
|
|
|
|
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)
|
|
|
|
|
{ |
|
|
|
|
if (key == KEY_C)
|
|
|
|
|