Skip to content
Snippets Groups Projects
Commit a542b822 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Maybe fix linux stuff input

parent b8dbd296
Branches
No related tags found
No related merge requests found
...@@ -1762,6 +1762,8 @@ void LLWindowSDL::gatherInput() ...@@ -1762,6 +1762,8 @@ void LLWindowSDL::gatherInput()
gKeyboard->handleKeyDown(mKeyVirtualKey, mKeyModifiers); gKeyboard->handleKeyDown(mKeyVirtualKey, mKeyModifiers);
if (mKeyVirtualKey == SDLK_RETURN || mKeyVirtualKey == SDLK_KP_ENTER) if (mKeyVirtualKey == SDLK_RETURN || mKeyVirtualKey == SDLK_KP_ENTER)
handleUnicodeUTF16(SDLK_RETURN, gKeyboard->currentMask(FALSE)); handleUnicodeUTF16(SDLK_RETURN, gKeyboard->currentMask(FALSE));
if (!mLanguageTextInputAllowed && isascii(mKeyVirtualKey))
mCallbacks->handleUnicodeChar(utf8str_to_wchar(std::string((char)mKeyVirtualKey)), mKeyModifiers);
// part of the fix for SL-13243 // part of the fix for SL-13243
if (SDLCheckGrabbyKeys(event.key.keysym.sym, TRUE) != 0) if (SDLCheckGrabbyKeys(event.key.keysym.sym, TRUE) != 0)
SDLReallyCaptureInput(TRUE); SDLReallyCaptureInput(TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment