-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Describe the Bug
When writing, if you use keyboard shortcut for italics (or bold), then hit space before un-italicizing, the space gets deleted when you un-italicize, and any further typing gets italicized and combined to the previous word.
Steps to reproduce the behavior:
- Start typing in a text block
- Use keyboard shortcut to switch to italics (cmd+i)
- Type italicized word, then a space
- Use keyboard shortcut to cancel italics (cmd+i)
- Type the next word in sentence.
Expected behavior
Ideally, the editor would put a closing tag on the last character before the space, and allow you to keep typing un-italicized (or un-bolded, etc.).
At the very least, there should be a non-breaking space after the character, then the closing tag.
In either case, you would be able to continue writing un-interrupted. Right now, it requires you to use the mouse to fix, or the right arrow key, which is disruptive to the user's writing flow.
Screenshots
Here's a gif of a short video of the behavior: https://imgur.com/iYvzfBG
I hope it helps, because this was a weird one to describe.
Desktop (please complete the following information):
- OS: MacOS Mojave 10.14.1
- Browser: Chrome
- Version 70.0.3538.110
Additional context
- Gutenberg 4.6.1
- Replicated on latest WP, as well as latest 5.0RC