[X11] Fix incorrect keycodes from non-QWERTY layouts.
This commit is contained in:
parent
4368191a9f
commit
1bb7e357a0
@ -2933,6 +2933,7 @@ void DisplayServerX11::_handle_key_event(WindowID p_window, XKeyEvent *p_event,
|
|||||||
xkeyevent_no_mod.state &= ~ShiftMask;
|
xkeyevent_no_mod.state &= ~ShiftMask;
|
||||||
xkeyevent_no_mod.state &= ~ControlMask;
|
xkeyevent_no_mod.state &= ~ControlMask;
|
||||||
XLookupString(xkeyevent, str, 255, &keysym_unicode, nullptr);
|
XLookupString(xkeyevent, str, 255, &keysym_unicode, nullptr);
|
||||||
|
XLookupString(&xkeyevent_no_mod, nullptr, 0, &keysym_keycode, nullptr);
|
||||||
|
|
||||||
String keysym;
|
String keysym;
|
||||||
if (xkb_keysym_to_utf32 && xkb_keysym_to_upper) {
|
if (xkb_keysym_to_utf32 && xkb_keysym_to_upper) {
|
||||||
|
Loading…
Reference in New Issue
Block a user