fix(ui): don't prevent default keyboard behavior unless its player shortcut (#1987)

This commit is contained in:
Delirium 2024-03-25 09:50:19 +01:00 committed by GitHub
parent 8c84fd6550
commit 3e1415eded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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':