click on waveform
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user