Also accept shift + y/n when asking for confirmation to close panes

This commit is contained in:
Spyros Roum authored and Wez Furlong committed 2021-09-08 09:33:08 -07:00
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 {