Picker: simpler keyboard shortcuts (±5 s / ±30 s)

Dropped Ctrl+arrow (±0.1 s) and ,/. frame stepping — too fine for
spotting the barrier opening visually. Shift+arrow now jumps ±30 s
instead of ±1 s, which matches how analysts actually navigate (5 s
for fine, 30 s for skipping ahead). Drag the seekbar if you need
sub-second precision.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Giorgio Gilestro 2026-05-01 14:11:36 +01:00
parent 53b45e373b
commit 3f0760c98e

View file

@ -76,9 +76,8 @@
<div id="help">
<kbd>Space</kbd> play/pause &nbsp;·&nbsp;
<kbd></kbd> / <kbd></kbd> ±5 s &nbsp;·&nbsp;
<kbd>Shift</kbd>+arrows ±1 s &nbsp;·&nbsp;
<kbd>Ctrl</kbd>+arrows ±0.1 s &nbsp;·&nbsp;
<kbd>,</kbd> / <kbd>.</kbd> ±1 frame
<kbd>Shift</kbd>+arrows ±30 s &nbsp;·&nbsp;
drag the seekbar for finer control
</div>
<div id="flash"></div>
</main>
@ -223,20 +222,11 @@
break;
case 'ArrowLeft':
stop();
player.currentTime -= e.ctrlKey ? 0.1 : (e.shiftKey ? 1 : 5);
player.currentTime -= e.shiftKey ? 30 : 5;
break;
case 'ArrowRight':
stop();
player.currentTime += e.ctrlKey ? 0.1 : (e.shiftKey ? 1 : 5);
break;
case ',':
stop();
// Step back one frame (assume 25 fps if unknown)
player.currentTime -= 1 / 25;
break;
case '.':
stop();
player.currentTime += 1 / 25;
player.currentTime += e.shiftKey ? 30 : 5;
break;
case '1': stop(); submit('all'); break;
case '2': stop(); submit('upper'); break;