Decide Esc "back" from the current view, not the selected row (#7) #29
Loading…
Reference in a new issue
No description provided.
Delete branch "eric/fix-7-esc-back-navigation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #7
Problem: Esc in browse mode decided where "back" went from the selected row and
edit_details. That data is stale unless an episode row is selected. So in a series or season view where the filter matched nothing, Esc quit the app. With a Season row selected, it could return to the wrong series.Fix (
src/handlers.rs): one Esc handler that looks only atview_context.get_season_by_id.Header hints (
src/components/header.rs) had the same mix-up:[ESC] exit(it goes back) and[ENTER] show episodeseven with an episode selected.[ESC]follows the view: "back" in series and season views, "exit" at the top level.[ENTER]follows the selected row: "show episodes" for a series or season, "play" for an episode.Testing in the real app (tmux, dummy videos):
[ENTER]/[ESC]labels at each step.🤖 Generated with Claude Code
https://claude.ai/code/session_01E2XefpQijvBcJBfgzuaoWA