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