Ideally, it might make sense to have the keyboard shortcuts for Undo and Redo work just as reliably as the on-screen buttons - probably like the icons for the Classic block, a bit at a time. This bug has the potential to remove a lot of content that can't be recovered. I think this behavior may be worth looking into, or at least monitoring, in case this happens for other users who rely on the Classic block - in particular, for users transitioning to Gutenberg editor who may want to use the Classic block exclusively. The few times it got me was with working on P2 updates (in Automattic) and losing all my formatting and links.
The Undo shortcut is universal in many programs, so I expected it to behave the same way the Classic Editor - not expecting that content would be lost and non-recoverable. I discovered this quirk by chance because I use the keyboard shortcut habitually across different programs. Not sure if applicable to Smartphones, because this is regarding a specific keyboard shortcut on computers and laptops.
Browser/Version: So far, Chrome Version. OS: So far, in both Apple OS (Macbook) and Window OS. This happens for both the "default" built in version of Gutenberg, and the "Gutenberg plugin" version (Version 8.1.0). When you hover over the icons, they display the same shortcut suggestion based on your device - so anyone who sees it will expect the same behavior, and not what currently happens: (2) The Classic block indicates that the keyboard shortcut is meant to work the same way as the on-screen buttons. (1) The quirk from the keyboard shortcut is different from the on-screen buttons on the editor and in the Classic block those work as expected when you click them, as follows: Other observations are the following that I captured in screenshots: Worth noting, this behavior is very distinct from the way that the Undo shortcut works if you type in different paragraph blocks, or if you use the Classic Editor. I did use lorem ipsum snippets for some of the text for the sake of the video, but it replicates the same way if you type everything manually. See the following 2-minute video to view how I replicate this behavior on my Macbook (Chrome), twice: NOTE: The following content was tested and recorded using the version of Gutenberg, but we have also replicated the same behavior in the self-hosted installations. If it wasn't saved before, it's not going to be found in Revision History, either. The classic block may return, but otherwise nothing - the content is gone, and no amount of "Redo" brings it back into the Classic block.
Try to "Redo" what you just removed using any available methods - Keyboard shortcuts, or any of the visual buttons on the editor or Classic block.įor the block to bring back all the content I just typed and formatted - no matter how much it removed when I clicked "Undo" - based on how these two shortcuts normally behave. You should see most if not all of your content removed in my case, the entire block goes away. On your keyboard, press on Windows, or on Mac, to use the "Undo" function. Keep typing, take pauses, adjust formatting, do whatever feels like a normal pace for writing. Create a classic block, and start typing content, maybe a few sentences or paragraphs. Starting at URL: Any post or page in the Gutenberg editor, any publish status. First reported for, we discovered it happens in the self-hosted installation that uses Gutenberg as well. Click the “Tools” button on the Command bar and select “Reopen last browsing session” from the drop-down menu.In brief, if you type the keyboard shortcut for "Undo" while working in the Classic block, it will remove all content and/or changes at once, and that content cannot be "Redo" back. Look through the list that displays and click on the webpage you want to reopen. Common actionsĬlick the “History” tab and then select the time frame corresponding to when you visited the webpage you want to reopen. To search the menus, press Alt + / (Windows, Chrome OS) or Option + / (Mac). To open a list of keyboard shortcuts in Google Docs, press Ctrl + / (Windows, Chrome OS) or ? + / (Mac). WHAT IS REDO FOR CHROME MAC KEYBOARD WINDOWS
In most Microsoft Windows applications, the keyboard shortcut for the Undo command is Ctrl+Z or Alt+Backspace, and the shortcut for Redo is Ctrl+Y or Ctrl+Shift+Z. Undo is an interaction technique which is implemented in many computer programs. You just press Command-Z to undo the tab closing ( undo works in most Mac apps). Hereof, how do I undo an action in Chrome?