From 08b4c620f2ca4fde315649bf73835d6912a83f96 Mon Sep 17 00:00:00 2001 From: York Date: Sun, 31 May 2026 22:36:53 +0800 Subject: [PATCH] Merge pull request #2082 from york9675/fix/spacebar Fix playback hotkeys by preventing browser default --- src/shared/utils/hotkeys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/utils/hotkeys.ts b/src/shared/utils/hotkeys.ts index 01b4bf90b..4e51006b6 100644 --- a/src/shared/utils/hotkeys.ts +++ b/src/shared/utils/hotkeys.ts @@ -33,5 +33,5 @@ export const withPhysicalKeys = (hotkeys: HotkeyItem[]): HotkeyItem[] => hotkeys.map(([hotkey, handler, options]) => [ toPhysicalHotkey(hotkey), handler, - { ...options, usePhysicalKeys: true }, + { ...options, preventDefault: true, usePhysicalKeys: true }, ]);