mirror of
https://github.com/apognu/tuigreet.git
synced 2024-09-11 07:25:29 +03:00
Fix uppercase characters being ignored.
This commit is contained in:
parent
de5f73b7aa
commit
fe587635f5
@ -266,24 +266,14 @@ pub async fn handle(greeter: Arc<RwLock<Greeter>>, input: KeyEvent, ipc: Ipc) ->
|
||||
Mode::Processing => {}
|
||||
},
|
||||
|
||||
// Do not handle any other controls keybindings
|
||||
KeyEvent { modifiers: KeyModifiers::CONTROL, .. } => {}
|
||||
|
||||
// Handle free-form entry of characters.
|
||||
KeyEvent {
|
||||
code: KeyCode::Char(c),
|
||||
modifiers: KeyModifiers::NONE,
|
||||
..
|
||||
} => insert_key(&mut greeter, c).await,
|
||||
KeyEvent { code: KeyCode::Char(c), .. } => insert_key(&mut greeter, c).await,
|
||||
|
||||
// Handle deletion of characters.
|
||||
KeyEvent {
|
||||
code: KeyCode::Backspace,
|
||||
modifiers: KeyModifiers::NONE,
|
||||
..
|
||||
}
|
||||
| KeyEvent {
|
||||
code: KeyCode::Delete,
|
||||
modifiers: KeyModifiers::NONE,
|
||||
..
|
||||
} => delete_key(&mut greeter, input.code).await,
|
||||
KeyEvent { code: KeyCode::Backspace, .. } | KeyEvent { code: KeyCode::Delete, .. } => delete_key(&mut greeter, input.code).await,
|
||||
|
||||
_ => {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user