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

input: add KeyCode number -> phys mapping

refs: https://github.com/wez/wezterm/issues/1483#issuecomment-1004377403
This commit is contained in:
Wez Furlong 2022-01-03 15:01:34 -07:00
parent ec31562b83
commit 2fc23b7c97

View File

@ -169,6 +169,16 @@ impl KeyCode {
Self::Char('x') | Self::Char('X') => PhysKeyCode::X,
Self::Char('y') | Self::Char('Y') => PhysKeyCode::Y,
Self::Char('z') | Self::Char('Z') => PhysKeyCode::Z,
Self::Char('0') => PhysKeyCode::K0,
Self::Char('1') => PhysKeyCode::K1,
Self::Char('2') => PhysKeyCode::K2,
Self::Char('3') => PhysKeyCode::K3,
Self::Char('4') => PhysKeyCode::K4,
Self::Char('5') => PhysKeyCode::K5,
Self::Char('6') => PhysKeyCode::K6,
Self::Char('7') => PhysKeyCode::K7,
Self::Char('8') => PhysKeyCode::K8,
Self::Char('9') => PhysKeyCode::K9,
Self::Char('\\') => PhysKeyCode::Backslash,
Self::Char(',') => PhysKeyCode::Comma,
Self::Char('\u{8}') => PhysKeyCode::Backspace,