mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-26 23:35:17 -07:00
fix(sidebar): preserve Space playback after cue seeking (#247)
This commit is contained in:
1 parent
7c1eac03dc
commit
6841a37a22
7 files changed
+81
-3
No files matched your search
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user