onNewUserAction(): if not coming from undo/redo: redoStack.clear()
Most modern software follows a standard convention for keyboard shortcuts. If you memorize these two, you’ll be covered in 90% of the apps you use. 1. Windows: Ctrl + Y or Ctrl + Shift + Z redo shortcut
Interestingly, in Office, if you haven't just performed an "Undo," Ctrl + Y acts as a Repeat command, duplicating your last action (like bolding a word or inserting a row). Google Suite (Docs, Sheets, Slides) Shortcut: Ctrl + Y or Ctrl + Shift + Z . Mac Shortcut: Command + Shift + Z . Adobe Creative Cloud (Photoshop, Illustrator, InDesign) onNewUserAction(): if not coming from undo/redo: redoStack
If you undo an action and then type something new , the redo "path" is broken. You cannot redo an old action once you’ve started a new chain of commands. Windows: Ctrl + Y or Ctrl + Shift
The redo shortcut is a keyboard shortcut that allows you to reverse the effects of an undo action. In other words, if you've undone a change by mistake, you can use the redo shortcut to reapply the original change. The most common redo shortcut is (Windows) or Command + Shift + Z (Mac).
Some lightweight apps only support a single level of undo/redo, meaning you can only go back and forth by one step. Summary Table Platform/App Undo Shortcut Redo Shortcut Windows (General) Ctrl + Z Ctrl + Y or Ctrl + Shift + Z macOS (General) Cmd + Z Cmd + Shift + Z Microsoft Word Ctrl + Z Ctrl + Y Photoshop Ctrl + Z Ctrl + Shift + Z Google Docs Ctrl + Z Ctrl + Shift + Z