codebase overhaul (#697)

This commit is contained in:
Maze
2026-01-31 00:20:04 +01:00
committed by GitHub
parent 0173db9944
commit 7bf0984698
469 changed files with 36184 additions and 32931 deletions
+17
View File
@@ -0,0 +1,17 @@
export function isTypableDOMElement({
element,
}: {
element: HTMLElement;
}): boolean {
if (element.isContentEditable) return true;
if (element.tagName === "INPUT") {
return !(element as HTMLInputElement).disabled;
}
if (element.tagName === "TEXTAREA") {
return !(element as HTMLTextAreaElement).disabled;
}
return false;
}