MCPcopy Index your code
hub / github.com/simstudioai/sim / handleKeyboardActivation

Function handleKeyboardActivation

packages/emcn/src/lib/keyboard.ts:11–25  ·  view source on GitHub ↗
(
  event: KeyboardEvent,
  action: () => void,
  options: KeyboardActivationOptions = {}
)

Source from the content-addressed store, hash-verified

9}
10
11export function handleKeyboardActivation(
12 event: KeyboardEvent,
13 action: () => void,
14 options: KeyboardActivationOptions = {}
15) {
16 if (!isKeyboardActivation(event)) return
17
18 event.preventDefault()
19
20 if (options.stopPropagation) {
21 event.stopPropagation()
22 }
23
24 action()
25}

Callers 15

SubflowNodeViewFunction · 0.90
WorkflowBlockViewFunction · 0.90
NoteBlockViewFunction · 0.90
CollapsibleCardFunction · 0.90
tag-input.tsxFile · 0.90
LogDetailsContentFunction · 0.90
WorkflowsListInnerFunction · 0.90
StatusBarInnerFunction · 0.90
data-row.tsxFile · 0.90
AddConnectorModalFunction · 0.90
BaseTagsModalFunction · 0.90
DocumentTagsModalFunction · 0.90

Calls 2

isKeyboardActivationFunction · 0.85
actionFunction · 0.85

Tested by

no test coverage detected