[X11] Fix incorrect keycodes from non-QWERTY layouts.

This commit is contained in:
bruvzg 2023-01-25 13:04:02 +02:00
parent 4368191a9f
commit 1bb7e357a0
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -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) {