hotfix: do not try to navigate the list when editing
This commit is contained in:
parent
ebe2713c61
commit
ffd45ad9ad
|
@ -40,6 +40,7 @@ pub async fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<
|
|||
}
|
||||
}
|
||||
}
|
||||
if app.editing != true {
|
||||
match key_event.code {
|
||||
Char('j') | Down => app.list.next(),
|
||||
Char('k') | Up => app.list.previous(),
|
||||
|
@ -47,5 +48,6 @@ pub async fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<
|
|||
Char('G') => app.go_bottom(),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Reference in a new issue