forked from extern/nushell
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() {
|
match crossterm::event::read() {
|
||||||
Ok(Event::Key(k)) => match k.code {
|
Ok(Event::Key(k)) => match k.code {
|
||||||
// TODO: maintain keycode parity with existing command
|
// 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::Char(c) => buf.push(c),
|
||||||
KeyCode::Backspace => {
|
KeyCode::Backspace => {
|
||||||
let _ = buf.pop();
|
let _ = buf.pop();
|
||||||
|
Loading…
Reference in New Issue
Block a user