|
|
@ -335,11 +335,11 @@ bool 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(); |
|
|
|
} |
|
|
|
} |
|
|
@ -381,9 +381,19 @@ bool pfGUIEditBoxMod::HandleKeyEvent( pfGameGUIMgr::EventType event, plKeyDef |
|
|
|
} |
|
|
|
} |
|
|
|
else if (key == KEY_TAB)
|
|
|
|
else if (key == KEY_TAB)
|
|
|
|
{ |
|
|
|
{ |
|
|
|
//Send notify for python scripts
|
|
|
|
// Send notify for python scripts
|
|
|
|
HandleExtendedEvent(kWantAutocomplete); |
|
|
|
HandleExtendedEvent(kWantAutocomplete); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
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)
|
|
|
|