Linux SDL2 - Attempt to make AltGr in text input fields work, so e.g. German keyboard users can type @ € and such characters again.

master
Zi Ree 2022-08-01 15:45:32 +02:00
parent 0ab3c69183
commit 8cd3733ad6
1 changed files with 2 additions and 6 deletions

View File

@ -1783,11 +1783,7 @@ void LLWindowSDL::gatherInput()
for( auto key: string )
{
mKeyVirtualKey = key;
if( (MASK_CONTROL|MASK_ALT)&mKeyModifiers )
gKeyboard->handleKeyDown(mKeyVirtualKey, mKeyModifiers );
else
handleUnicodeUTF16( key, mKeyModifiers );
handleUnicodeUTF16( key, mKeyModifiers );
}
break;
}
@ -1935,7 +1931,7 @@ void LLWindowSDL::gatherInput()
// <FS:ND> I think is is not
// SDL_SetWindowSize(mWindow, width, height);
//
mCallbacks->handleResize(this, width, height);
}
else if( event.window.event == SDL_WINDOWEVENT_FOCUS_GAINED ) // <FS:ND> What about SDL_WINDOWEVENT_ENTER (mouse focus)