Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33382 closed defect (bug) (fixed)

Asterisk-space sometimes doesn't convert to a bullet

Reported by: pento Owned by: azaozz
Priority: normal Milestone: 4.3
Component: Editor Version: 4.3
Severity: normal Keywords: has-patch commit
Cc: Focuses: javascript, administration

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)

33382.patch​ (771 bytes ) - added by azaozz 11 years ago.

Download all attachments as: .zip

Change History (8)

@azaozz
11 years ago

#2 @azaozz
11 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.

#3 @azaozz
11 years ago

  • Keywords has-patch needs-testing added; needs-patch removed

#4 @pento
11 years ago

  • Keywords needs-testing removed

Confirmed that the patch works for me.

+1 for commit.

#5 @obenland
11 years ago

  • Keywords commit added
  • Owner set to azaozz
  • Status new → reviewing

This ticket was mentioned in ​Slack in #core by obenland. ​View the logs.


11 years ago

#7 @obenland
11 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 33622:

Editor: Exclude shift from modifier keys when handling spacebar shortcuts.

Patterns that activate on enter are still canceled with any modifier active.

Props azaozz.
Fixes #33382.

Note: See TracTickets for help on using tickets.