We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0658c5f + 140c62b commit f85af1cCopy full SHA for f85af1c
src/app.rs
@@ -329,9 +329,9 @@ impl App {
329
let backend = CrosstermBackend::new(stdout);
330
let terminal = Terminal::new(backend)?;
331
let state = State::new(
332
- terminal.size()?,
333
- args.mode,
334
- args.level as u64,
+ terminal.size()?,
+ args.mode,
+ args.level as u64,
335
args.timer_color);
336
337
Ok(Self {
@@ -370,8 +370,9 @@ impl App {
370
}
371
372
fn handle_keyboard(&mut self, key: KeyEvent) {
373
- if let KeyCode::Char('q') = key.code {
374
- self.should_quit = true;
+ match key.code {
+ KeyCode::Esc | KeyCode::Char('q') | KeyCode::Char('Q') => self.should_quit = true,
375
+ _ => {}
376
377
378
0 commit comments