generated from GarandPLG/rust-flake-template
Add Quit2 action bound to Ctrl+C
This commit is contained in:
@@ -109,6 +109,7 @@ impl App {
|
||||
if let Some(action) = event_to_action(&key_event) {
|
||||
match action {
|
||||
Action::Quit => self.exit = true,
|
||||
Action::Quit2 => self.exit = true,
|
||||
Action::Esc => self.view = View::MainMenu,
|
||||
_ => (),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user