Commit 3efe88a1 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Merge branch 'linux_numpad_enter_fix2' into 'master'

Fix numpad Enter on Linux

See merge request !43
parents 0220a7fe dad36c34
......@@ -1878,8 +1878,8 @@ void LLWindowSDL::gatherInput()
mKeyModifiers = (SDL_Keymod) event.key.keysym.mod;
gKeyboard->handleKeyDown(mKeyVirtualKey, mKeyModifiers);
if (mKeyVirtualKey == SDLK_RETURN)
handleUnicodeUTF16(mKeyVirtualKey, gKeyboard->currentMask(FALSE));
if (mKeyVirtualKey == SDLK_RETURN || mKeyVirtualKey == SDLK_KP_ENTER)
handleUnicodeUTF16(SDLK_RETURN, gKeyboard->currentMask(FALSE));
// part of the fix for SL-13243
if (SDLCheckGrabbyKeys(event.key.keysym.sym, TRUE) != 0)
SDLReallyCaptureInput(TRUE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment