diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-25 13:04:02 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-25 13:04:02 +0200 |
commit | 1bb7e357a0dea793dff4008f5e093c4e484ffef3 (patch) | |
tree | a3a906cddc5dd7ee685e184e65bd4b6add442103 | |
parent | 4368191a9f9c6290805dd4094c36379776128338 (diff) |
[X11] Fix incorrect keycodes from non-QWERTY layouts.
-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 f1159c3981..3d94fd9a00 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) { |