Closed CristhianRodriguezMolina closed 1 year ago
Close #176
Now the users can redo the blocks with both the CMD+Y and CMD+SHIFT+Z, but also still can configure both custom shortcuts as always:
CMD+Y
CMD+SHIFT+Z
new Undo({ editor, config: { shortcuts: { undo: "CMD+F", redo: "CMD+G" }, }, });
The solution was to use arrays to manage multiple shortcuts for undo and redo, if it's necessary we can also update the code a little to allow users to set all the shortcuts they want for both undo and redo commands.
Description
Close #176
Now the users can redo the blocks with both the
CMD+Y
andCMD+SHIFT+Z
, but also still can configure both custom shortcuts as always:Solution
The solution was to use arrays to manage multiple shortcuts for undo and redo, if it's necessary we can also update the code a little to allow users to set all the shortcuts they want for both undo and redo commands.