diff options
author | Jan Hrastnik | 2021-06-02 20:45:36 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-03 14:16:04 +0000 |
commit | 712f25c2b952672d496d393552d1545d54de3d51 (patch) | |
tree | 312b400d0fd36814875cba1aba4a273baffe4272 /helix-term/src/ui | |
parent | abe8a83d8e0adeb83c188b28501176e17f4c4fbf (diff) |
removed shift matching
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/editor.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 15e64b72..19db3fa7 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -543,10 +543,15 @@ impl Component for EditorView { cx.editor.resize(Rect::new(0, 0, width, height - 1)); EventResult::Consumed(None) } - Event::Key(key) => { + Event::Key(mut key) => { // clear status cx.editor.status_msg = None; + //canonicalize the key + if key.modifiers == KeyModifiers::SHIFT { + key.modifiers = KeyModifiers::NONE; + } + let (view, doc) = cx.editor.current(); let mode = doc.mode(); |