fix ctrl+shift+z redo

This commit is contained in:
Qing 2022-07-19 21:51:22 +08:00
parent cfcaf82a21
commit dd288f33e4

View File

@ -585,7 +585,9 @@ export default function Editor(props: EditorProps) {
// Handle Cmd+shift+Z
const redoPredicate = (event: KeyboardEvent) => {
const isCmdZ =
(event.metaKey || event.ctrlKey) && event.shiftKey && event.key === 'z'
(event.metaKey || event.ctrlKey) &&
event.shiftKey &&
event.key.toLowerCase() === 'z'
// Handle tab switch
if (event.key === 'Tab') {
event.preventDefault()