MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / handleKeydown

Function handleKeydown

src/components/inputhints/index.js:104–111  ·  view source on GitHub ↗

* Handle keydown event * @param {KeyboardEvent} e Event

(e)

Source from the content-addressed store, hash-verified

102 * @param {KeyboardEvent} e Event
103 */
104 function handleKeydown(e) {
105 const code = e.key;
106 if (code === "ArrowUp" || code === "ArrowDown") {
107 e.preventDefault();
108 e.stopPropagation();
109 }
110 updateHintFocus(code);
111 }
112
113 /**
114 * Moves the active hint up or down

Callers

nothing calls this directly

Calls 3

updateHintFocusFunction · 0.85
preventDefaultMethod · 0.45
stopPropagationMethod · 0.45

Tested by

no test coverage detected