Skip to content

Commit

Permalink
Update handler.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacperacy authored Jun 21, 2024
1 parent ca66dd8 commit fae9753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};

pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
match key_event.modifiers {
KeyModifiers::CONTROL || KeyModifiers::ALT => {
KeyModifiers::CONTROL | KeyModifiers::ALT => {
if key_event.code == KeyCode::Char('c') || key_event.code == KeyCode::Char('C') {
app.quit();
}
Expand Down

0 comments on commit fae9753

Please sign in to comment.