From 3e1415eded70df5db6e05ccedd5e3220344a9650 Mon Sep 17 00:00:00 2001 From: Delirium Date: Mon, 25 Mar 2024 09:50:19 +0100 Subject: [PATCH] fix(ui): don't prevent default keyboard behavior unless its player shortcut (#1987) --- .../app/components/Session/Player/ReplayPlayer/useShortcuts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/Session/Player/ReplayPlayer/useShortcuts.ts b/frontend/app/components/Session/Player/ReplayPlayer/useShortcuts.ts index 63959cd33..dc27dd1b7 100644 --- a/frontend/app/components/Session/Player/ReplayPlayer/useShortcuts.ts +++ b/frontend/app/components/Session/Player/ReplayPlayer/useShortcuts.ts @@ -35,9 +35,9 @@ function useShortcuts({ if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) { return; } - e.preventDefault(); // shift + f = fullscreenOn if (e.shiftKey) { + e.preventDefault(); player.toggleInspectorMode(false) switch (e.key) { case 'F':