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

Function onCancel

src/renderer/composables/useDialog.ts:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 const onCancel = () => {
60 if (!isDialogActive)
61 return
62
63 resolve(false)
64 isOpen.value = false
65 cleanup()
66 }
67
68 const handleKeyDown = (event: KeyboardEvent) => {
69 if (event.key === 'Enter' && isOpen.value && isDialogActive) {

Callers 1

setupFunction · 0.85

Calls 2

cleanupFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected