diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsx index a7a44b0cc8b..3dd2c47f2ea 100644 --- a/packages/ui/src/components/Command/Command.utils.tsx +++ b/packages/ui/src/components/Command/Command.utils.tsx @@ -408,8 +408,10 @@ export function useAutoInputFocus() { // Focus the input when typing from anywhere React.useEffect(() => { - function onKeyDown() { - input?.focus() + function onKeyDown(e: KeyboardEvent) { + if (!e.ctrlKey && !e.altKey && !e.metaKey && e.key !== 'Tab') { + input?.focus() + } } window.addEventListener('keydown', onKeyDown)