click on waveform

This commit is contained in:
2025-10-13 11:17:20 +02:00
parent 4df063f9b3
commit 179c52facc
4 changed files with 23 additions and 7 deletions

View File

@ -9,6 +9,7 @@ export interface KeyboardActions {
onVolumeIncrease?: (large: boolean) => void;
onEscape?: () => void;
onUndo?: () => void;
onPlayFromStart?: () => void;
}
export function createKeyboardHandler(actions: KeyboardActions) {
@ -34,6 +35,10 @@ export function createKeyboardHandler(actions: KeyboardActions) {
case 's':
actions.onDownload?.();
break;
case ' ':
event.preventDefault();
actions.onPlayFromStart?.();
break;
case 'arrowleft':
event.preventDefault();
actions.onDurationDecrease?.(isLargeAdjustment);