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

Use unicode for key events despite the fact that our current Plasma20 fonts only support latin-1

This commit is contained in:
2011-06-09 02:14:36 -04:00
committed by Branan Purvine-Riley
parent 13147affed
commit a29a7deda0
16 changed files with 51 additions and 128 deletions

View File

@ -519,7 +519,8 @@ hsBool pfConsole::MsgReceive( plMessage *msg )
void pfConsole::IHandleKey( plKeyEventMsg *msg )
{
char *c, key;
char *c;
wchar_t key;
int i,eol;
static hsBool findAgain = false;
static UInt32 findCounter = 0;
@ -831,13 +832,13 @@ void pfConsole::IHandleKey( plKeyEventMsg *msg )
{
key = plKeyboardDevice::KeyEventToChar( msg );
// do they want to go into help mode?
if( !fPythonMode && key == '?' && fWorkingCursor == 0 )
if( !fPythonMode && key == L'?' && fWorkingCursor == 0 )
{
/// Go into help mode
fHelpMode = true;
}
// do they want to go into Python mode?
else if( !fHelpMode && key == '\\' && fWorkingCursor == 0 )
else if( !fHelpMode && key == L'\\' && fWorkingCursor == 0 )
{
// toggle Python mode
fPythonMode = fPythonMode ? false:true;