fix input ctrl+z

This commit is contained in:
Qing 2022-09-25 21:08:46 +08:00
parent 2a94150f59
commit bc98ea256a

View File

@ -35,6 +35,9 @@ const TextInput = React.forwardRef<
if (e.key === 'Escape') {
e.currentTarget.blur()
}
if ((e.ctrlKey || e.metaKey) && e.key === 'z') {
e.stopPropagation()
}
}}
/>
)