Support Ctrl + Enter for non-Mac (#544)
parent
996dba7595
commit
62b07f93fd
|
@ -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…
Reference in New Issue