about summary refs log tree commit diff
path: root/src/view/com/composer/text-input
diff options
context:
space:
mode:
authoruakci <git@uakci.space>2023-09-11 18:02:14 +0200
committerGitHub <noreply@github.com>2023-09-11 09:02:14 -0700
commit731d84faaa1ad42fe2db3ab72c2c4265d36d2d55 (patch)
tree7ca6ca669747d08108386413dacb818e24e1d4ba /src/view/com/composer/text-input
parent775aa875404898ad727960b28c6b271a5a381864 (diff)
downloadvoidsky-731d84faaa1ad42fe2db3ab72c2c4265d36d2d55.tar.zst
composer: inhibit Cmd-Enter from inputting newline (#1421)
Diffstat (limited to 'src/view/com/composer/text-input')
-rw-r--r--src/view/com/composer/text-input/TextInput.web.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx
index e90298817..7eea904ab 100644
--- a/src/view/com/composer/text-input/TextInput.web.tsx
+++ b/src/view/com/composer/text-input/TextInput.web.tsx
@@ -103,6 +103,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
         handleKeyDown: (_, event) => {
           if ((event.metaKey || event.ctrlKey) && event.code === 'Enter') {
             textInputWebEmitter.emit('publish')
+            return true
           }
         },
       },