Fix undo & paste keyboard shortcuts
Summary
When using Ctrl/Cmd + Z and Ctrl/Cmd + V, the focus does not change to where the action took place
Steps to reproduce:
- Open a document
- Type something at the bottom of the document
- Scroll to top of document and place cursor near the top
- Press Cmd + Z
Actual Result
The action is applied but the focus does not go to where the action takes place
Expected Result
The page should jump to wherever the action took place (undo or paste)
Connected to Huly®: UBERF-9276
I proposed a partial fix in Platform-Collective/platform#207, the actively maintained continuation of this repository. It covers the paste part (the editor now scrolls to the pasted content); the undo selection problem comes from the collaboration library and is not covered.
Follow-up: the paste part is merged in Platform-Collective/platform#207 (the editor scrolls to the pasted content). Revealing the change after undo and redo is part of Platform-Collective/platform#282, which is still under review.