Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Alchemy Next
Commits
dad36c34
Unverified
Commit
dad36c34
authored
Sep 06, 2021
by
Miezhiko
Browse files
Fix numpad Enter on Linux
Signed-off-by:
Miezhiko
<
Miezhiko@gmail.com
>
parent
0220a7fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/llwindow/llwindowsdl.cpp
View file @
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment