diff options
author | Sabrehull <124904810+Sabrehull@users.noreply.github.com> | 2023-03-29 15:18:31 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-30 19:19:23 +0200 |
commit | 105699620067a280cccd13a9c0e3ab84a5cbc3c6 (patch) | |
tree | f587c0fcc0154826aeb714f2934b1f082444a780 /platform | |
parent | 74a35c9ca2c8084608a2caf36ee912d202c936b5 (diff) |
[X11] Fix layout bug in `keyboard_get_keycode_from_physical`
(cherry picked from commit d4b746626659d6e29c54da57b822735d15ab14c0)
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linuxbsd/x11/display_server_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp index 5be1bd236b..3f57a95dea 100644 --- a/platform/linuxbsd/x11/display_server_x11.cpp +++ b/platform/linuxbsd/x11/display_server_x11.cpp @@ -2824,7 +2824,7 @@ Key DisplayServerX11::keyboard_get_keycode_from_physical(Key p_keycode) const { Key modifiers = p_keycode & KeyModifierMask::MODIFIER_MASK; Key keycode_no_mod = p_keycode & KeyModifierMask::CODE_MASK; unsigned int xkeycode = KeyMappingX11::get_xlibcode(keycode_no_mod); - KeySym xkeysym = XkbKeycodeToKeysym(x11_display, xkeycode, 0, 0); + KeySym xkeysym = XkbKeycodeToKeysym(x11_display, xkeycode, keyboard_get_current_layout(), 0); if (is_ascii_lower_case(xkeysym)) { xkeysym -= ('a' - 'A'); } |