composer: inhibit Cmd-Enter from inputting newline (#1421)
This commit is contained in:
parent
775aa87540
commit
731d84faaa
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
|
||||||
handleKeyDown: (_, event) => {
|
handleKeyDown: (_, event) => {
|
||||||
if ((event.metaKey || event.ctrlKey) && event.code === 'Enter') {
|
if ((event.metaKey || event.ctrlKey) && event.code === 'Enter') {
|
||||||
textInputWebEmitter.emit('publish')
|
textInputWebEmitter.emit('publish')
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue