We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d64a86a + cf21565 commit 4eed084Copy full SHA for 4eed084
platform/linuxbsd/x11/display_server_x11.cpp
@@ -3746,8 +3746,11 @@ Key DisplayServerX11::keyboard_get_label_from_physical(Key p_keycode) const {
3746
Key key = KeyMappingX11::get_keycode(xkeysym);
3747
#ifdef XKB_ENABLED
3748
if (xkb_loaded_v08p) {
3749
- String keysym = String::chr(xkb_keysym_to_utf32(xkb_keysym_to_upper(xkeysym)));
3750
- key = fix_key_label(keysym[0], KeyMappingX11::get_keycode(xkeysym));
+ char32_t chr = xkb_keysym_to_utf32(xkb_keysym_to_upper(xkeysym));
+ if (chr != 0) {
3751
+ String keysym = String::chr(chr);
3752
+ key = fix_key_label(keysym[0], KeyMappingX11::get_keycode(xkeysym));
3753
+ }
3754
}
3755
#endif
3756
0 commit comments