Merge pull request #72029 from bruvzg/x11_keycode
[X11] Fix incorrect keycodes from non-QWERTY layouts.
This commit is contained in:
commit
67961d8ebf
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue