diff --git a/src/handler.rs b/src/handler.rs index 7713490..45f7a26 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -40,12 +40,14 @@ pub async fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult< } } } - match key_event.code { - Char('j') | Down => app.list.next(), - Char('k') | Up => app.list.previous(), - Char('g') => app.go_top(), - Char('G') => app.go_bottom(), - _ => {} + if app.editing != true { + match key_event.code { + Char('j') | Down => app.list.next(), + Char('k') | Up => app.list.previous(), + Char('g') => app.go_top(), + Char('G') => app.go_bottom(), + _ => {} + } } Ok(()) }