mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes undo/redo
This commit is contained in:
parent
d5467e7db5
commit
3f1360368d
@ -35,12 +35,12 @@ export default function IAICanvasRedoButton() {
|
||||
|
||||
useHotkeys(
|
||||
['meta+shift+z', 'control+shift+z', 'control+y', 'meta+y'],
|
||||
(e: KeyboardEvent) => {
|
||||
e.preventDefault();
|
||||
() => {
|
||||
handleRedo();
|
||||
},
|
||||
{
|
||||
enabled: canRedo,
|
||||
enabled: () => canRedo,
|
||||
preventDefault: true,
|
||||
},
|
||||
[activeTabName, canRedo]
|
||||
);
|
||||
|
@ -36,12 +36,12 @@ export default function IAICanvasUndoButton() {
|
||||
|
||||
useHotkeys(
|
||||
['meta+z', 'control+z'],
|
||||
(e: KeyboardEvent) => {
|
||||
e.preventDefault();
|
||||
() => {
|
||||
handleUndo();
|
||||
},
|
||||
{
|
||||
enabled: canUndo,
|
||||
enabled: () => canUndo,
|
||||
preventDefault: true,
|
||||
},
|
||||
[activeTabName, canUndo]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user