diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index 0c92ab0921a3f..328414763b1be 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -185,8 +185,8 @@ pub fn default() -> HashMap { "(" => rotate_selections_backward, ")" => rotate_selections_forward, - "A-(" => rotate_selection_contents_backward, - "A-)" => rotate_selection_contents_forward, + "A-(" | "A-S-9" => rotate_selection_contents_backward, + "A-)" | "A-S-0" => rotate_selection_contents_forward, "A-:" => ensure_selections_forward, @@ -329,7 +329,7 @@ pub fn default() -> HashMap { "|" => shell_pipe, "A-|" => shell_pipe_to, "!" => shell_insert_output, - "A-!" => shell_append_output, + "A-!" | "A-S-1" => shell_append_output, "$" => shell_keep_pipe, "C-z" => suspend, diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 44cadc6bc2e95..9c7b65089911a 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1641,11 +1641,11 @@ impl Component for EditorView { } fn canonicalize_key(key: &mut KeyEvent) { - if let KeyEvent { - code: KeyCode::Char(_), - modifiers: _, - } = key - { - key.modifiers.remove(KeyModifiers::SHIFT) + match key { + KeyEvent { + code: KeyCode::Char(char), + modifiers: _, + } if char.is_alphabetic() => key.modifiers.remove(KeyModifiers::SHIFT), + _ => (), } }