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

This commit is contained in:
uakci
2023-09-11 18:02:14 +02:00
committed by GitHub
parent 775aa87540
commit 731d84faaa
@@ -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
}
},
},