allow ctrl+v to paste image to editor

This commit is contained in:
Qing
2022-10-08 21:41:26 +08:00
parent 4980675730
commit 3c5781c947
4 changed files with 51 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ const TextInput = React.forwardRef<
type="text"
onFocus={handleOnFocus}
onBlur={handleOnBlur}
onPaste={evt => evt.stopPropagation()}
onKeyDown={e => {
if (e.key === 'Escape') {
e.currentTarget.blur()