Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Nov 9, 2022

  • ⚠️ This backport had conflicts and is incomplete

backport of #3350

When typing dead keys (like diacritics), the browser is in composition
mode[1] until the accompanioning character is typed. This breaks author
annotations.

We have to hold back the transaction when in composition and only apply
it afterwards, as suggested at [2]. So check for `view.composing` before
applying the transaction.

Fixes: #2871

[1] https://w3c.github.io/uievents/#events-compositionevents
[2] https://discuss.prosemirror.net/t/plugins-and-characters-with-a-diacritic/2674/3

Signed-off-by: Jonas <[email protected]>
@backportbot-nextcloud backportbot-nextcloud bot added the bug Something isn't working label Nov 9, 2022
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 24.0.8 milestone Nov 9, 2022
@cypress
Copy link

cypress bot commented Nov 9, 2022



Test summary

52 0 0 0


Run details

Project Text
Status Passed
Commit 91c1425 ℹ️
Started Nov 9, 2022 7:32 AM
Ended Nov 9, 2022 7:35 AM
Duration 03:11 💡
OS Linux Ubuntu - 20.04
Browser Electron 100

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@max-nextcloud
Copy link
Collaborator

/compile

Signed-off-by: nextcloud-command <[email protected]>
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look good, tested locally.

@max-nextcloud max-nextcloud merged commit 3bb952b into stable24 Nov 9, 2022
@delete-merged-branch delete-merged-branch bot deleted the backport/3350/stable24 branch November 9, 2022 08:12
@blizzz blizzz mentioned this pull request Nov 21, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants