on master help sign in
key_canonicalization now only matches chars
daad8ebJan Hrastnik
helix-term/src/ui/editor.rs+7−3
@@ -692,8 +692,12 @@ impl Component for EditorView {
692}
692}
693
693
694fn canonicalize_key(key: &mut KeyEvent) -> KeyEvent {
694fn canonicalize_key(key: &mut KeyEvent) -> KeyEvent {
695+ if let KeyEvent {
695− if let KeyEvent { code: KeyCode::Char(_), modifiers: KeyModifiers::SHIFT } = key {
696+ code: KeyCode::Char(_),
697+ modifiers: _,
698+ } = key
699+ {
696− key.modifiers = KeyModifiers::NONE;
700+ key.modifiers.remove(KeyModifiers::SHIFT)
697 }
701 }
698 *key
702 *key
699−}
703+}