TODO: fix prompt input undo redo
This commit is contained in:
parent
5bdc5c1526
commit
f947e2aa94
@ -641,9 +641,6 @@ export default function Editor(props: EditorProps) {
|
||||
// Handle Cmd+Z
|
||||
const undoPredicate = (event: KeyboardEvent) => {
|
||||
// TODO: fix prompt input ctrl+z
|
||||
if (isSD) {
|
||||
return false
|
||||
}
|
||||
const isCmdZ =
|
||||
(event.metaKey || event.ctrlKey) && !event.shiftKey && event.key === 'z'
|
||||
// Handle tab switch
|
||||
@ -718,9 +715,6 @@ export default function Editor(props: EditorProps) {
|
||||
|
||||
// Handle Cmd+shift+Z
|
||||
const redoPredicate = (event: KeyboardEvent) => {
|
||||
if (isSD) {
|
||||
return false
|
||||
}
|
||||
const isCmdZ =
|
||||
(event.metaKey || event.ctrlKey) &&
|
||||
event.shiftKey &&
|
||||
|
Loading…
Reference in New Issue
Block a user