From 051a84a962b656e4066e187c60d3a522e0aa1d7c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Jan 2026 10:37:05 +0000 Subject: [PATCH] fix: allow Ctrl/Cmd+Enter to submit messages when suggestion popup is open The suggestion list components were intercepting all Enter key presses, including Ctrl+Enter and Cmd+Enter, preventing message submission when the autocomplete popup was visible. Now these modifier combinations pass through to the editor's submit handler. --- src/components/editor/EmojiSuggestionList.tsx | 2 +- src/components/editor/ProfileSuggestionList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/editor/EmojiSuggestionList.tsx b/src/components/editor/EmojiSuggestionList.tsx index 6105470..4bcd16e 100644 --- a/src/components/editor/EmojiSuggestionList.tsx +++ b/src/components/editor/EmojiSuggestionList.tsx @@ -58,7 +58,7 @@ export const EmojiSuggestionList = forwardRef< return true; } - if (event.key === "Enter") { + if (event.key === "Enter" && !event.ctrlKey && !event.metaKey) { if (items[selectedIndex]) { command(items[selectedIndex]); } diff --git a/src/components/editor/ProfileSuggestionList.tsx b/src/components/editor/ProfileSuggestionList.tsx index 58a0a3d..60c00c4 100644 --- a/src/components/editor/ProfileSuggestionList.tsx +++ b/src/components/editor/ProfileSuggestionList.tsx @@ -38,7 +38,7 @@ export const ProfileSuggestionList = forwardRef< return true; } - if (event.key === "Enter") { + if (event.key === "Enter" && !event.ctrlKey && !event.metaKey) { if (items[selectedIndex]) { command(items[selectedIndex]); }