mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Send SE_CHAR events (CharEvent) for ENTER, TAB and ESCAPE keys
So that UINotepad registers them as valid keypresses when typing
This commit is contained in:
parent
9a35d34fc3
commit
3254b3f044
1 changed files with 2 additions and 0 deletions
|
@ -1016,6 +1016,8 @@ static void IN_ProcessEvents( void )
|
|||
|
||||
if( key == K_BACKSPACE )
|
||||
Com_QueueEvent( in_eventTime, SE_CHAR, CTRL('h'), 0, 0, NULL );
|
||||
else if (key == K_ENTER || key == K_TAB || key == K_ESCAPE) // mostly used by UINotepad
|
||||
Com_QueueEvent( in_eventTime, SE_CHAR, key, 0, 0, NULL);
|
||||
else if( keys[K_CTRL].down && key >= 'a' && key <= 'z' )
|
||||
Com_QueueEvent( in_eventTime, SE_CHAR, CTRL(key), 0, 0, NULL );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue