From e159f3fd0d3bbb69c263f9925206977ab77834a4 Mon Sep 17 00:00:00 2001 From: Antonio Natilla Date: Fri, 5 Nov 2021 22:56:20 +0100 Subject: [PATCH] Curly braces fix (#171) Co-authored-by: Antonio Natilla --- src/edit_mode/emacs.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/edit_mode/emacs.rs b/src/edit_mode/emacs.rs index 40c8f963..59c8cb07 100644 --- a/src/edit_mode/emacs.rs +++ b/src/edit_mode/emacs.rs @@ -34,9 +34,17 @@ impl EditMode for Emacs { (m, KeyCode::Char(c)) if m == KeyModifiers::CONTROL | KeyModifiers::ALT => { ReedlineEvent::Edit(vec![EditCommand::InsertChar(c)]) } + + (m, KeyCode::Char(c)) + if m == KeyModifiers::CONTROL | KeyModifiers::ALT | KeyModifiers::SHIFT => + { + ReedlineEvent::Edit(vec![EditCommand::InsertChar(c)]) + } + (KeyModifiers::SHIFT, KeyCode::Char(c)) => { ReedlineEvent::Edit(vec![EditCommand::InsertChar(c.to_ascii_uppercase())]) } + (KeyModifiers::NONE, KeyCode::Enter) => ReedlineEvent::Enter, _ => self .keybindings