MCPcopy
hub / github.com/superagent-ai/grok-cli / isEscapeKey

Function isEscapeKey

src/ui/app.tsx:5772–5780  ·  view source on GitHub ↗
(key: KeyEvent)

Source from the content-addressed store, hash-verified

5770/* ── Helpers ──────────────────────────────────────────────────── */
5771
5772function isEscapeKey(key: KeyEvent): boolean {
5773 return (
5774 key.name === "escape" ||
5775 key.code === "Escape" ||
5776 key.baseCode === 27 ||
5777 key.sequence === "\u001b" ||
5778 key.raw === "\u001b"
5779 );
5780}
5781
5782function toolArgs(tc?: ToolCall): string {
5783 if (!tc) return "";

Callers 2

onInternalKeyFunction · 0.85
AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected