mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-31 00:51:17 +00:00
Readd backspace char event for UI VM text fields
UI VMs expect a backspace char event, but sdl2 branch only was only sending a key event. Revert cl_keys.c to master branch (it would cause backspace to happen twice in console).
This commit is contained in:
parent
ad514c9689
commit
952fd0489c
2 changed files with 4 additions and 9 deletions
|
@ -729,6 +729,9 @@ static void IN_ProcessEvents( void )
|
|||
if( ( key = IN_TranslateSDLToQ3Key( &e.key.keysym, qtrue ) ) )
|
||||
Com_QueueEvent( 0, SE_KEY, key, qtrue, 0, NULL );
|
||||
|
||||
if( key == K_BACKSPACE )
|
||||
Com_QueueEvent( 0, SE_CHAR, CTRL('h'), 0, 0, NULL );
|
||||
|
||||
lastKeyDown = key;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue