diff --git a/here.zip b/here.zip deleted file mode 100644 index ca80fa0..0000000 Binary files a/here.zip and /dev/null differ diff --git a/revert.zip b/revert.zip new file mode 100644 index 0000000..018b401 Binary files /dev/null and b/revert.zip differ diff --git a/src/main.rs b/src/main.rs index 3a0d8b6..52bda3e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -255,15 +255,6 @@ fn run_app(terminal: &mut Terminal>) -> io::Result< } fn handle_key(app: &mut App, code: KeyCode) { - // Normalize arrow navigation - let code = match code { - KeyCode::Right => KeyCode::Enter, - KeyCode::Left => KeyCode::Esc, - KeyCode::Char('l') => KeyCode::Enter, - KeyCode::Char('h') => KeyCode::Esc, - other => other, - }; - // Special input handling in Login view if matches!(app.current_view(), View::Login) { match code { @@ -399,6 +390,16 @@ fn handle_key(app: &mut App, code: KeyCode) { } } + // Normalize arrow navigation + let code = match code { + KeyCode::Right => KeyCode::Enter, + KeyCode::Left => KeyCode::Esc, + KeyCode::Char('l') => KeyCode::Enter, + KeyCode::Char('h') => KeyCode::Esc, + other => other, + }; + + // q behavior: if not home, go home; if home, quit if matches!(code, KeyCode::Char('q')) { if !matches!(app.current_view(), View::Categories) {