diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-25 12:17:41 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-25 12:17:41 +0100 |
commit | 67961d8ebf5cbfcc37485640ace882f10574ab9e (patch) | |
tree | abd3c93c1ada40a2fed96d4057d60a6ae7a66ca2 /platform/linuxbsd | |
parent | f247f8340bd10844d65de9e3e52ba5f6b2fd02e6 (diff) | |
parent | 1bb7e357a0dea793dff4008f5e093c4e484ffef3 (diff) |
Merge pull request #72029 from bruvzg/x11_keycode
[X11] Fix incorrect keycodes from non-QWERTY layouts.
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/x11/display_server_x11.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp index aad0680f8c..e4553905cd 100644 --- a/platform/linuxbsd/x11/display_server_x11.cpp +++ b/platform/linuxbsd/x11/display_server_x11.cpp @@ -2933,6 +2933,7 @@ void DisplayServerX11::_handle_key_event(WindowID p_window, XKeyEvent *p_event, xkeyevent_no_mod.state &= ~ShiftMask; xkeyevent_no_mod.state &= ~ControlMask; XLookupString(xkeyevent, str, 255, &keysym_unicode, nullptr); + XLookupString(&xkeyevent_no_mod, nullptr, 0, &keysym_keycode, nullptr); String keysym; if (xkb_keysym_to_utf32 && xkb_keysym_to_upper) { |