Skip to content

Commit

Permalink
allow uppercase chars to be captured during suppressed input (#6199)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdncred committed Jul 31, 2022
1 parent 26caf7e commit a83bd4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/nu-command/src/platform/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ impl Command for Input {
match crossterm::event::read() {
Ok(Event::Key(k)) => match k.code {
// TODO: maintain keycode parity with existing command
KeyCode::Char(_) if k.modifiers != KeyModifiers::NONE => continue,
KeyCode::Char(_)
if k.modifiers == KeyModifiers::ALT
|| k.modifiers == KeyModifiers::CONTROL =>
{
continue
}
KeyCode::Char(c) => buf.push(c),
KeyCode::Backspace => {
let _ = buf.pop();
Expand Down

0 comments on commit a83bd4a

Please sign in to comment.