diff --git a/web/src/main.ts b/web/src/main.ts index 55ef644..485d3bd 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -5341,7 +5341,12 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { setStatus(null); void loadMetadata(id, ticket); if (focusKey !== null) { - view.querySelector(`[data-focus-id="${focusKey}"]`)?.focus(); + // A file delete rebuilds the season tree and moves focus to the control + // that replaced the delete action. Keep keyboard context without making + // the browser scroll the freshly repainted page back to that control. + view.querySelector(`[data-focus-id="${focusKey}"]`)?.focus({ + preventScroll: true, + }); focusKey = null; } }