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

fixup KeyCode variant usage

This commit is contained in:
Wez Furlong 2019-02-16 08:53:59 -08:00
parent ebf7210ae6
commit 77884e2522

View File

@ -453,30 +453,30 @@ impl TerminalWindow {
// These are all handled by ReceivedCharacter
return Ok(());
}
V::F1 => KeyCode::F(1),
V::F2 => KeyCode::F(2),
V::F3 => KeyCode::F(3),
V::F4 => KeyCode::F(4),
V::F5 => KeyCode::F(5),
V::F6 => KeyCode::F(6),
V::F7 => KeyCode::F(7),
V::F8 => KeyCode::F(8),
V::F9 => KeyCode::F(9),
V::F10 => KeyCode::F(10),
V::F11 => KeyCode::F(11),
V::F12 => KeyCode::F(12),
V::F13 => KeyCode::F(13),
V::F14 => KeyCode::F(14),
V::F15 => KeyCode::F(15),
V::F1 => KeyCode::Function(1),
V::F2 => KeyCode::Function(2),
V::F3 => KeyCode::Function(3),
V::F4 => KeyCode::Function(4),
V::F5 => KeyCode::Function(5),
V::F6 => KeyCode::Function(6),
V::F7 => KeyCode::Function(7),
V::F8 => KeyCode::Function(8),
V::F9 => KeyCode::Function(9),
V::F10 => KeyCode::Function(10),
V::F11 => KeyCode::Function(11),
V::F12 => KeyCode::Function(12),
V::F13 => KeyCode::Function(13),
V::F14 => KeyCode::Function(14),
V::F15 => KeyCode::Function(15),
V::Insert => KeyCode::Insert,
V::Home => KeyCode::Home,
V::End => KeyCode::End,
V::PageDown => KeyCode::PageDown,
V::PageUp => KeyCode::PageUp,
V::Left => KeyCode::Left,
V::Up => KeyCode::Up,
V::Right => KeyCode::Right,
V::Down => KeyCode::Down,
V::Left => KeyCode::LeftArrow,
V::Up => KeyCode::UpArrow,
V::Right => KeyCode::RightArrow,
V::Down => KeyCode::DownArrow,
V::LAlt | V::RAlt => KeyCode::Alt,
V::LControl | V::RControl => KeyCode::Control,
V::LMenu | V::RMenu | V::LShift | V::RShift => KeyCode::Shift,