MCPcopy Create free account
hub / github.com/alanagoyal/docbase / isTyping

Function isTyping

components/command-menu.tsx:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20import { clientLogger } from "@/lib/client-logger";
21
22const 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
32export function CommandMenu() {
33 const router = useRouter();

Callers 1

downFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected