From 731d84faaa1ad42fe2db3ab72c2c4265d36d2d55 Mon Sep 17 00:00:00 2001
From: uakci <git@uakci.space>
Date: Mon, 11 Sep 2023 18:02:14 +0200
Subject: composer: inhibit Cmd-Enter from inputting newline (#1421)

---
 src/view/com/composer/text-input/TextInput.web.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/view/com/composer/text-input/TextInput.web.tsx')

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
           }
         },
       },
-- 
cgit 1.4.1

