MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / handleKeyDown

Function handleKeyDown

frontend/components/error-toast.tsx:11–16  ·  view source on GitHub ↗
(e: React.KeyboardEvent)

Source from the content-addressed store, hash-verified

9
10export function ErrorToast({ message, onDismiss }: ErrorToastProps) {
11 const handleKeyDown = (e: React.KeyboardEvent) => {
12 if (e.key === "Enter" || e.key === " " || e.key === "Escape") {
13 e.preventDefault()
14 onDismiss()
15 }
16 }
17
18 return (
19 <div

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected