diff --git a/packages/ui/src/functions/keyboard.ts b/packages/ui/src/functions/keyboard.ts index e1013802..87f607ed 100644 --- a/packages/ui/src/functions/keyboard.ts +++ b/packages/ui/src/functions/keyboard.ts @@ -64,9 +64,14 @@ export default function (it: UIInterface) { function keydown(e: KeyboardEvent) { if ( document.activeElement?.tagName == 'INPUT' || + document.activeElement?.tagName == 'TEXTAREA' || document.activeElement?.getAttribute('contenteditable') || (!config.keyboard?.global && !config.keyboard?.focused) || - (config.keyboard.focused && !isFocused(player)) + (config.keyboard.focused && !isFocused(player)) || + !e.altKey || + !e.ctrlKey || + !e.metaKey || + !e.shiftKey ) { return }