Merge pull request #72029 from bruvzg/x11_keycode

[X11] Fix incorrect keycodes from non-QWERTY layouts.
This commit is contained in:
Rémi Verschelde 2023-01-25 12:17:41 +01:00
commit 67961d8ebf
No known key found for this signature in database
GPG key ID: C3336907360768E1

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