2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Fixed python multi-line entry by preventing double enter events

This commit is contained in:
NadnerbD
2012-01-31 02:34:19 -05:00
parent 5301d05dd4
commit 6750a033d2

View File

@ -540,8 +540,9 @@ void pfConsole::IHandleKey( plKeyEventMsg *msg )
static hsBool findAgain = false;
static uint32_t findCounter = 0;
if( !msg->GetKeyDown() )
// filter out keyUps and ascii control characters
// as the control functions are handled on the keyDown event
if( !msg->GetKeyDown() || (msg->GetKeyChar() > '\0' && msg->GetKeyChar() < ' '))
return;
if( msg->GetKeyCode() == KEY_ESCAPE )