MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / preventDefault

Function preventDefault

cli/src/components/ask-user/index.tsx:311–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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')) {

Callers 1

MultipleChoiceFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected