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
|
// Handle Cmd+shift+Z
|
||||||
const redoPredicate = (event: KeyboardEvent) => {
|
const redoPredicate = (event: KeyboardEvent) => {
|
||||||
const isCmdZ =
|
const isCmdZ =
|
||||||
(event.metaKey || event.ctrlKey) && event.shiftKey && event.key === 'z'
|
(event.metaKey || event.ctrlKey) &&
|
||||||
|
event.shiftKey &&
|
||||||
|
event.key.toLowerCase() === 'z'
|
||||||
// Handle tab switch
|
// Handle tab switch
|
||||||
if (event.key === 'Tab') {
|
if (event.key === 'Tab') {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
Loading…
Reference in New Issue
Block a user