MCPcopy Create free account
hub / github.com/massCodeIO/massCode / handleKeyDown

Function handleKeyDown

src/renderer/composables/useDialog.ts:68–73  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

66 }
67
68 const handleKeyDown = (event: KeyboardEvent) => {
69 if (event.key === 'Enter' && isOpen.value && isDialogActive) {
70 event.preventDefault()
71 onConfirm()
72 }
73 }
74
75 useEventListener(document, 'keydown', handleKeyDown)
76

Callers

nothing calls this directly

Calls 1

onConfirmFunction · 0.85

Tested by

no test coverage detected