supermemory/apps/web/components/chat
Cursor Agent 8cedfd2883
fix(web): guard e.key before toLowerCase in chat keydown handler
When a keydown event fires with e.key === undefined (e.g. from synthetic
events via browser extensions, accessibility tools, or IME compositions),
calling e.key.toLowerCase() throws an unhandled TypeError.

Add optional chaining so e.key?.toLowerCase() safely returns undefined
when e.key is absent, causing the if-condition to evaluate to false and
the handler to skip gracefully.

Fixes Sentry issue CONSUMER-APP-19V.

Co-authored-by: Dhravya Shah <dhravya@supermemory.com>
2026-08-03 01:33:03 +00:00
..
input expand chat file drop zone (#1085) 2026-06-10 18:55:57 +00:00
message Render Nova connector setup cards (#1071) 2026-07-28 15:58:50 +00:00
attachments.ts implement Nova chat attachments on the web side (#1004) 2026-06-08 06:18:28 +00:00
chat-empty-state.tsx Render Nova connector setup cards (#1071) 2026-07-28 15:58:50 +00:00
chat-graph-context-rail.tsx Update chat empty state and Auto space mode (#954) 2026-05-16 23:55:34 -07:00
home-chat-composer.tsx Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30
index.tsx fix(web): guard e.key before toLowerCase in chat keydown handler 2026-08-03 01:33:03 +00:00
model-selector.tsx Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30
reasoning-selector.tsx Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30