()
| 309 | (key: KeyEvent) => { |
| 310 | // Helper to prevent default behavior |
| 311 | const preventDefault = () => { |
| 312 | if ('preventDefault' in key && typeof key.preventDefault === 'function') { |
| 313 | key.preventDefault() |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | // Escape or Ctrl+C to skip/close the form |
| 318 | if (key.name === 'escape' || (key.ctrl && key.name === 'c')) { |
no outgoing calls
no test coverage detected