DOC-3526: Using the undo keyboard shortcut did not restore editor selection correctly#4170
Open
kemister85 wants to merge 1 commit into
Open
DOC-3526: Using the undo keyboard shortcut did not restore editor selection correctly#4170kemister85 wants to merge 1 commit into
kemister85 wants to merge 1 commit into
Conversation
…tor selection correctly
lorenzo-pomili
approved these changes
Jun 5, 2026
|
|
||
| Previously, pressing the undo keyboard shortcut (Ctrl+Z, or Cmd+Z on macOS) after deleting a selection could leave the cursor in the wrong position. An earlier change registered an extra undo step whenever Ctrl or Cmd was pressed, so the step was recorded before the deleted content was restored. | ||
|
|
||
| In {productname} {release-version}, the undo step is registered only when Ctrl or Cmd is pressed together with Backspace or Delete. Undoing the deletion of a selection now restores both the content and the original selection correctly. |
Contributor
There was a problem hiding this comment.
maybe it could make sense to specify that now we add the undo level only for: Ctrl or Cmd is pressed together with Backspace or Delete is related to: An earlier change registered an extra undo step whenever Ctrl or Cmd was pressed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket: DOC-3526
Site: Staging
Changes:
modules/ROOT/pages/8.7.0-release-notes.adoc(Bug fixes section): Using the undo keyboard shortcut did not restore editor selection correctly.Pre-checks:
Branch is correctly prefixed(release-note branch)modules/ROOT/nav.adochas been updated (if applicable).Files removed have been deleted, not just excluded from the build (if applicable).Files added for New product features include arelease noteentry.Major or minor version changes have updated thesupported-versions.adoctable.