composer: inhibit Cmd-Enter from inputting newline (#1421)

zio/stable
uakci 2023-09-11 18:02:14 +02:00 committed by GitHub
parent 775aa87540
commit 731d84faaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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
}
},
},