[wp-trac] [WordPress Trac] #31661: Quicktags: Can't add them using just a keyboard in IE

WordPress Trac noreply at wordpress.org
Wed Mar 25 17:41:54 UTC 2015


#31661: Quicktags: Can't add them using just a keyboard in IE
--------------------------+----------------------------------------
 Reporter:  Cheffheid     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  accessibility, javascript
--------------------------+----------------------------------------
Changes (by afercia):

 * keywords:   => has-patch


Comment:

 Standard compliant browsers and (old?) Internet Explorer have different
 ways to handle text selection. This is especially true inside a textarea,
 quoting @azaozz :)
 [https://wordpress.slack.com/archives/accessibility/p1426618001002049 yep,
 IE cannot keep a selection in blurred elements]

 Maybe the simplest way to try to improve here is to get and store the text
 selection ''before'' the textarea is blurred, i.e. when reverse tabbing
 from the textarea to the quicktags toolbar, see the attached experimental
 patch.

 I can test only in Internet Explorer 8 so for now this is experimental,
 would need someone else help to test in IE 9+ before moving on and
 refining the patch. In IE 8 seems to work nicely, see the animated GIF
 below.

 How to test:
 - in different IE versions
 - use just your keyboard, Tab to navigate and Enter to activate the
 buttons
 - try to add quick-tags in all the possible ways

 Additionally, the "Close All" button is now enabled only when there are
 "pending" open quicktags to close.

 [[Image(https://cldup.com/mPQ1JhIE5r.gif)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31661#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list