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]); }