diff options
author | uakci <git@uakci.space> | 2023-09-11 18:02:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 09:02:14 -0700 |
commit | 731d84faaa1ad42fe2db3ab72c2c4265d36d2d55 (patch) | |
tree | 7ca6ca669747d08108386413dacb818e24e1d4ba /src | |
parent | 775aa875404898ad727960b28c6b271a5a381864 (diff) | |
download | voidsky-731d84faaa1ad42fe2db3ab72c2c4265d36d2d55.tar.zst |
composer: inhibit Cmd-Enter from inputting newline (#1421)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/composer/text-input/TextInput.web.tsx | 1 |
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 } }, }, |