If you have a <kbd>
block, you can’t move the caret after it but before the next character.
The video below demonstrates the difficulty in adding/editing the first character after a <kbd>
block.
If you have a <kbd>
block, you can’t move the caret after it but before the next character.
The video below demonstrates the difficulty in adding/editing the first character after a <kbd>
block.
This is the “expected” behavior of a HTML content editable - inside and outside an inline node is considered a single position.
The inline code is a great example of an alternative: it shows a fake cursor at that single position, so when you arrow navigate, it’s the same position with different marks, and slightly shifted visually.
I believe an ideal state will be supporting that same behavior for other types of content.
… and this is why I don’t use WYSIWYG editors when possible
(this is a personal preference that goes back… 35 years all the way back to WordPerfect 5.1)
Exactly. They just never work quite right no matter how much they are refined. I’ve seen this type of bug in so many WYSIWYG editors.