Also accept shift + y/n when asking for confirmation to close panes
This commit is contained in:
1 parent
27153e1cea
commit
bfaf46a196
1 file changed
+2
-2
@@ -116,13 +116,13 @@ fn run_confirmation_app(message: &str, term: &mut TermWizTerminal) -> anyhow::Re
|
||||
while let Ok(Some(event)) = term.poll_input(None) {
|
||||
match event {
|
||||
InputEvent::Key(KeyEvent {
|
||||
key: KeyCode::Char('y'),
|
||||
key: KeyCode::Char('y' | 'Y'),
|
||||
..
|
||||
}) => {
|
||||
return Ok(true);
|
||||
}
|
||||
InputEvent::Key(KeyEvent {
|
||||
key: KeyCode::Char('n'),
|
||||
key: KeyCode::Char('n' | 'N'),
|
||||
..
|
||||
})
|
||||
| InputEvent::Key(KeyEvent {
|
||||
|
||||
Reference in new issue
Block a user