forked from atiran/txtris
feat: ctrl+c
to quit
This commit is contained in:
parent
d0e075cde1
commit
a529c91261
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ impl App {
|
|||
KeyCode::Char('q') | KeyCode::Esc => self.should_exit = true,
|
||||
KeyCode::Char('j') | KeyCode::Down => self.select_next(),
|
||||
KeyCode::Char('k') | KeyCode::Up => self.select_previous(),
|
||||
KeyCode::Char('c') => {
|
||||
if key.modifiers.contains(event::KeyModifiers::CONTROL) {
|
||||
self.should_exit = true;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue