Text Editor (Undo/Redo Functionality):?
- In a text editor (such as Microsoft Word or Notepad), users can press Ctrl + Z
to undo the most recent changes. Each time the user types, the editor saves
a snapshot of the text as a Memento. Pressing Ctrl + Z restores the text to its
previous state.