window: fix shift-tab processing on X11
This was being silently swallowed. For some reason shift-tab generates ISO Left Tab rather than regular Tab and we weren't mapping that.
This commit is contained in:
1 parent
2ef985aa18
commit
538ce5e110
2 files changed
+2
-1
No files matched your search
@@ -141,7 +141,7 @@ impl Keyboard {
|
||||
if let Some(key) = keysym_to_keycode(xsym) {
|
||||
key
|
||||
} else {
|
||||
// log::debug!("xkbc:Missing xcb keysym {} definition", xsym);
|
||||
log::debug!("xkbc:Missing xcb keysym 0x{:x} definition", xsym);
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ pub fn keysym_to_keycode(keysym: u32) -> Option<KeyCode> {
|
||||
Some(match keysym {
|
||||
KEY_Escape => KeyCode::Char('\u{1b}'),
|
||||
KEY_Tab => KeyCode::Char('\t'),
|
||||
KEY_ISO_Left_Tab => KeyCode::Char('\t'),
|
||||
|
||||
KEY_BackSpace => KeyCode::Char('\u{8}'),
|
||||
KEY_Return => KeyCode::Char('\r'),
|
||||
|
||||
Reference in new issue
Block a user