From 0dad3a829a9cf4e9543e4a9476938ddc83074058 Mon Sep 17 00:00:00 2001 From: keith Date: Sat, 4 Jan 2020 23:56:02 -0800 Subject: [PATCH] attempt at adding more support virtual key codes --- src/keybindings.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keybindings.rs b/src/keybindings.rs index 82d50e7..8161c92 100644 --- a/src/keybindings.rs +++ b/src/keybindings.rs @@ -76,8 +76,10 @@ fn parse_keycode(keycode: VirtualKeyCode) -> Option<(String, bool)> { VirtualKeyCode::Back => Some(("BS".to_string(), true)), VirtualKeyCode::Return => Some(("Enter".to_string(), true)), VirtualKeyCode::Space => Some(("Space".to_string(), true)), + VirtualKeyCode::Caret => Some(("^".to_string(), false)), VirtualKeyCode::Apostrophe => Some(("'".to_string(), false)), VirtualKeyCode::Backslash => Some(("Bslash".to_string(), true)), + VirtualKeyCode::Colon => Some((":".to_string(), false)), VirtualKeyCode::Comma => Some((",".to_string(), false)), VirtualKeyCode::Equals => Some(("=".to_string(), false)), VirtualKeyCode::Grave => Some(("`".to_string(), false)),