Skip to content

Commit 040cc90

Browse files
authored
Docs: DOC-3526 - Using the undo keyboard shortcut did not restore editor selection correctly (#4170)
1 parent a3aab3d commit 040cc90

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

modules/ROOT/pages/8.7.0-release-notes.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ Previously, clicking to the right of the content in a list item could place the
200200

201201
In {productname} {release-version}, a targeted workaround detects this case and corrects the caret position. Clicking to the right of a list item now places the cursor where expected.
202202

203+
=== Using the undo keyboard shortcut did not restore editor selection correctly
204+
// #TINY-14255
205+
206+
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.
207+
208+
In {productname} {release-version}, {productname} registers that undo step only when Ctrl or Cmd is pressed together with Backspace or Delete, rather than on every Ctrl or Cmd key press. Undoing the deletion of a selection now restores both the content and the original selection correctly.
209+
203210

204211
[[security-fixes]]
205212
== Security fixes

0 commit comments

Comments
 (0)