fix(overlay): forward mpv input while subtitle sidebar is open (#300)

This commit is contained in:
sudacode authored and GitHub committed 2026-10-24 23:28:58 -07:00
1 parent 3549e0ed93
commit 9150a60630
3 files changed
+44 -1

No files matched your search

+2 -1
View File
@@ -123,12 +123,13 @@ export function createKeyboardHandlers(
}
// Imported mpv bindings only run when no SubMiner UI could be the input's target.
// The subtitle sidebar is a side panel over playback, so only input inside it (a
// `.modal` target) stays with SubMiner.
function canForwardToMpv(target: EventTarget | null): boolean {
return (
keyboardConfigLoaded &&
!ctx.state.playlistBrowserModalOpen &&
!ctx.state.youtubePickerModalOpen &&
!ctx.state.subtitleSidebarModalOpen &&
!isLookupPopupOpen(ctx.state, document) &&
!isInteractiveTarget(target)
);