()
| 20 | import { clientLogger } from "@/lib/client-logger"; |
| 21 | |
| 22 | const isTyping = () => { |
| 23 | const activeElement = document.activeElement; |
| 24 | return ( |
| 25 | activeElement instanceof HTMLInputElement || |
| 26 | activeElement instanceof HTMLTextAreaElement || |
| 27 | (activeElement instanceof HTMLElement && activeElement.isContentEditable) || |
| 28 | activeElement?.closest('[role="combobox"]') !== null |
| 29 | ); |
| 30 | }; |
| 31 | |
| 32 | export function CommandMenu() { |
| 33 | const router = useRouter(); |