mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
allow uppercase chars to be captured during suppressed input (#6199)
This commit is contained in:
parent
26caf7e1b2
commit
a83bd4ab20
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user