MCPcopy
hub / github.com/refined-github/refined-github / isEditable

Function isEditable

source/helpers/dom-utils.ts:54–57  ·  view source on GitHub ↗
(node: unknown)

Source from the content-addressed store, hash-verified

52};
53
54export const isEditable = (node: unknown): boolean =>
55 node instanceof HTMLTextAreaElement
56 || node instanceof HTMLInputElement
57 || (node instanceof HTMLElement && node.isContentEditable);
58
59export const frame = async (): Promise<number> =>
60 new Promise(resolve => {

Callers 3

listenerFunction · 0.85
runShortcutsFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected