Support Ctrl + Enter for non-Mac (#544)
This commit is contained in:
parent
996dba7595
commit
62b07f93fd
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export const TextInput = React.forwardRef(
|
|||
getImageFromUri(items, onPhotoPasted)
|
||||
},
|
||||
handleKeyDown: (_, event) => {
|
||||
if (event.metaKey && event.code === 'Enter') {
|
||||
if ((event.metaKey || event.ctrlKey) && event.code === 'Enter') {
|
||||
// Workaround relying on previous state from `setRichText` to
|
||||
// get the updated text content during editor initialization
|
||||
setRichText((state: RichText) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue