MCPcopy Create free account
hub / github.com/Noumena-Network/code / handleKeyDown

Function handleKeyDown

src/components/tasks/WorkflowDetailDialog.tsx:52–69  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

50 useKeybindings({ 'confirm:yes': onDone }, { context: 'Confirmation' })
51
52 const handleKeyDown = (e: KeyboardEvent) => {
53 if (e.key === ' ') {
54 e.preventDefault()
55 onDone('Workflow details dismissed', { display: 'system' })
56 return
57 }
58
59 if (e.key === 'left') {
60 e.preventDefault()
61 onBack()
62 return
63 }
64
65 if (e.key === 'x' && workflow.status === 'running' && onKill) {
66 e.preventDefault()
67 onKill()
68 }
69 }
70
71 const title = <Text>{workflow.workflowName}</Text>
72 const subtitle = (

Callers

nothing calls this directly

Calls 2

preventDefaultMethod · 0.80
onDoneFunction · 0.50

Tested by

no test coverage detected