1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00

input: fix KeyCode::Physical -> termwiz KeyCode conversion

refs: https://github.com/wez/wezterm/issues/1519
refs: #1483
This commit is contained in:
Wez Furlong 2022-01-07 14:01:01 -07:00
parent 4524abcdba
commit 78c4c56425

View File

@ -421,7 +421,9 @@ impl super::TermWindow {
}
WK::Char('\u{1b}') => KC::Escape,
WK::RawCode(_) => return Key::None,
WK::Physical(_) => return Key::None,
WK::Physical(phys) => {
return self.win_key_code_to_termwiz_key_code(&phys.to_key_code())
}
WK::Char(c) => KC::Char(*c),
WK::Composed(ref s) => {