MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / isTypingTarget

Function isTypingTarget

graph-ui/src/app/keyboard.ts:149–161  ·  view source on GitHub ↗
(target: KeyTargetLike | null | undefined)

Source from the content-addressed store, hash-verified

147 * nicht nur als Folge des ersten; der Grund steht bei {@link EDITOR_SURFACE}.
148 */
149export function isTypingTarget(target: KeyTargetLike | null | undefined): boolean {
150 if (target === null || target === undefined) {
151 return false;
152 }
153 if (target.isContentEditable === true) {
154 return true;
155 }
156 const tag = (target.tagName ?? '').toUpperCase();
157 if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') {
158 return true;
159 }
160 return target.closest?.(EDITOR_SURFACE) != null;
161}
162
163/** Der Buchstabe hinter einer physischen Taste, oder nichts. */
164function letterOfCode(code: string): string | undefined {

Callers 6

onKeyFunction · 0.90
keyboard.test.tsFile · 0.90
readKeyEventFunction · 0.90
onKeyFunction · 0.90
menuShortcutForFunction · 0.85
commandLineIntentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected