Skip to content

Commit

Permalink
key shortcuts p1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacperacy committed Jun 20, 2024
1 parent 4957601 commit 1e5acf1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
if key_event.code == KeyCode::Char('s') || key_event.code == KeyCode::Char('S') {
app.save_to_file();
}
if key_event.code == KeyCode::Left {
// TODO: handling
}
if key_event.code == KeyCode::Right {
// TODO: handling
}
}
_ => match key_event.code {
KeyCode::Esc => {
Expand Down

0 comments on commit 1e5acf1

Please sign in to comment.