Skip to content

Commit

Permalink
Shared: Allow console key usage for text input with alt key.
Browse files Browse the repository at this point in the history
Fixes issue on German layouts where ^ is the console key which prevented using color codes.
  • Loading branch information
ensiform committed Jan 4, 2016
1 parent bdb1cae commit 2975d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/sdl/sdl_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ static fakeAscii_t IN_TranslateSDLToJKKey( SDL_Keysym *keysym, qboolean down ) {
if( in_keyboardDebug->integer )
IN_PrintKey( keysym, key, down );

if( IN_IsConsoleKey( key, 0 ) )
if( IN_IsConsoleKey( key, 0 ) && !kg.keys[A_ALT].down )
{
// Console keys can't be bound or generate characters
key = A_CONSOLE;
Expand Down

0 comments on commit 2975d38

Please sign in to comment.