(e: KeyboardEvent)
| 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 = ( |
nothing calls this directly
no test coverage detected