From db0014d68ae7a84cca92ae0da6a5fc4b746b6e4a Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 13 Jun 2023 09:29:08 +0300 Subject: [PATCH] Use current keyboard layout in OS_X11::keyboard_get_scancode_from_physical. --- platform/x11/os_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 57c65e5e2..37674453d 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -4314,7 +4314,7 @@ uint32_t OS_X11::keyboard_get_scancode_from_physical(uint32_t p_scancode) const unsigned int modifiers = p_scancode & KEY_MODIFIER_MASK; unsigned int scancode_no_mod = p_scancode & KEY_CODE_MASK; unsigned int xkeycode = KeyMappingX11::get_xlibcode((uint32_t)scancode_no_mod); - KeySym xkeysym = XkbKeycodeToKeysym(x11_display, xkeycode, 0, 0); + KeySym xkeysym = XkbKeycodeToKeysym(x11_display, xkeycode, keyboard_get_current_layout(), 0); if (xkeysym >= 'a' && xkeysym <= 'z') { xkeysym -= ('a' - 'A'); }