fix ctrl+shift+z redo
This commit is contained in:
parent
cfcaf82a21
commit
dd288f33e4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user