composer: inhibit Cmd-Enter from inputting newline (#1421)
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
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue