fix(sidebar): preserve Space playback after cue seeking (#247)

This commit is contained in:
sudacode authored and GitHub committed 2026-09-15 21:35:10 -07:00
1 parent 7c1eac03dc
commit 6841a37a22
7 files changed
+81 -3

No files matched your search

+2 -1
View File
@@ -515,7 +515,7 @@ export function createSubtitleSidebarModal(
row.setAttribute('role', 'button');
row.setAttribute('aria-label', getCueRowLabel(cue));
row.addEventListener('keydown', (event: KeyboardEvent) => {
if (event.key !== 'Enter' && event.key !== ' ') {
if (event.key !== 'Enter') {
return;
}
event.preventDefault();
@@ -742,6 +742,7 @@ export function createSubtitleSidebarModal(
if (!cue) {
return;
}
row.blur();
seekToCue(cue);
});
ctx.dom.subtitleSidebarList.addEventListener('wheel', () => {