From 8cd3733ad69ec4560db2e859fdcf806613dc8c9e Mon Sep 17 00:00:00 2001 From: Zi Ree Date: Mon, 1 Aug 2022 15:45:32 +0200 Subject: [PATCH] =?UTF-8?q?Linux=20SDL2=20-=20Attempt=20to=20make=20AltGr?= =?UTF-8?q?=20in=20text=20input=20fields=20work,=20so=20e.g.=20German=20ke?= =?UTF-8?q?yboard=20users=20can=20type=20@=20=E2=82=AC=20and=20such=20char?= =?UTF-8?q?acters=20again.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- indra/llwindow/llwindowsdl2.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/indra/llwindow/llwindowsdl2.cpp b/indra/llwindow/llwindowsdl2.cpp index 32626388e1..082d2a93b5 100644 --- a/indra/llwindow/llwindowsdl2.cpp +++ b/indra/llwindow/llwindowsdl2.cpp @@ -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() // I think is is not // SDL_SetWindowSize(mWindow, width, height); // - + mCallbacks->handleResize(this, width, height); } else if( event.window.event == SDL_WINDOWEVENT_FOCUS_GAINED ) // What about SDL_WINDOWEVENT_ENTER (mouse focus)