composer: inhibit Cmd-Enter from inputting newline (#1421)
This commit is contained in:
@@ -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
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user