aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/editor.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 0b0ad5ed..da95763e 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -692,8 +692,12 @@ impl Component for EditorView {
}
fn canonicalize_key(key: &mut KeyEvent) -> KeyEvent {
- if let KeyEvent { code: KeyCode::Char(_), modifiers: KeyModifiers::SHIFT } = key {
- key.modifiers = KeyModifiers::NONE;
+ if let KeyEvent {
+ code: KeyCode::Char(_),
+ modifiers: _,
+ } = key
+ {
+ key.modifiers.remove(KeyModifiers::SHIFT)
}
*key
-} \ No newline at end of file
+}