Skip to content

[6.x] Only remove Bard set when backspace key is hit#14189

Open
duncanmcclean wants to merge 1 commit into6.xfrom
removing-bard-sets
Open

[6.x] Only remove Bard set when backspace key is hit#14189
duncanmcclean wants to merge 1 commit into6.xfrom
removing-bard-sets

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where pressing any character key while a Bard set is selected would delete the set.

This was happening because TipTap/ProseMirror's default behavior for selected nodes is to replace them when typing.

This PR fixes it by adding keyboard shortcuts that intercept printable character keys (letters, numbers, punctuation) when a set node is selected, preventing accidental deletion.

Backspace and Delete keys still work normally for intentional removal.


Partially fixes #14185

@andjsch
Copy link
Contributor

andjsch commented Mar 10, 2026

This is nice. Had that happen in v5 also from time to time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing UX in bard sets and removing sets is too easy

2 participants