Unverified Commit dad36c34 authored by Miezhiko's avatar Miezhiko
Browse files

Fix numpad Enter on Linux

Signed-off-by: Miezhiko's avatarMiezhiko <Miezhiko@gmail.com>
parent 0220a7fe
......@@ -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)
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