| author | |
| committer | |
| log | d25090cf6d2f334668bf1cba75b6ce3d78beb237 |
| tree | 0f570aee9435f1e0d80645477422fa39745f037f |
| parent | ae39bacf0e0a59a36477c9c9c33301908d888ee8 |
| signature | Signed by PGP key B5690EEEBB952194 |
Co-authored-by: Julius Marminge <julius0216@outlook.com>1 files changed, 6 insertions(+), 0 deletions(-)
apps/web/src/components/ComposerPromptEditor.tsx+6| ... | ... | @@ -910,6 +910,12 @@ function ComposerCommandKeyPlugin(props: { |
| 910 | 910 | if (!props.onCommandKeyDown || !event) { |
| 911 | 911 | return false; |
| 912 | 912 | } |
| 913 | ||
| 914 | if (key === "Enter" && (event.isComposing || event.keyCode === 229)) { | |
| 915 | event.stopPropagation(); | |
| 916 | return true; | |
| 917 | } | |
| 918 | ||
| 913 | 919 | const handled = props.onCommandKeyDown(key, event); |
| 914 | 920 | if (handled) { |
| 915 | 921 | event.preventDefault(); |