Browse Source

Fixed python multi-line entry by preventing double enter events

NadnerbD 13 years ago
parent
commit
6750a033d2
  1. 5
      Sources/Plasma/FeatureLib/pfConsole/pfConsole.cpp

5
Sources/Plasma/FeatureLib/pfConsole/pfConsole.cpp

@ -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 )

Loading…
Cancel
Save