Opened 9 years ago
Closed 9 years ago
#33382 closed defect (bug) (fixed)
Asterisk-space sometimes doesn't convert to a bullet
Reported by: | pento | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Editor | Keywords: | has-patch commit |
Focuses: | javascript, administration | Cc: |
Description
If you're typing quickly, sometimes you'll still be holding down the Shift key as you press Space, after pressing *
.
This causes the sequence to not convert to a bullet. (The same behaviour occurs for 1)
, but not for 1.
, because of the lack of Shift in the latter.)
Chrome 44.0.2403.155, OSX.
Attachments (1)
Change History (8)
#2
@
9 years ago
In 33382.patch: exclude shift when checking for modifier keys when applying the list patterns on pressing the spacebar.
The patterns that activate on enter are still canceled when any modifier is pressed. Currently shift + enter produces a <br> and cancels the replacement.
#4
@
9 years ago
- Keywords needs-testing removed
Confirmed that the patch works for me.
+1 for commit.
This ticket was mentioned in Slack in #core by obenland. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
We specifically check for modifier keys when pressing the spacebar: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js#L47 and https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js#L41
Perhaps we can only check for Ctrl, Cmd and Alt and allow Shift?