[wp-trac] [WordPress Trac] #33301: Create and edit links inline

WordPress Trac noreply at wordpress.org
Sat Mar 12 18:52:47 UTC 2016


#33301: Create and edit links inline
-------------------------------------+-------------------------------------
 Reporter:  iseulde                  |       Owner:  azaozz
     Type:  task (blessed)           |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.5
Component:  Editor                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch dev-         |     Focuses:  ui, accessibility,
  feedback                           |  javascript, administration
-------------------------------------+-------------------------------------
Changes (by afercia):

 * keywords:  needs-patch => needs-patch dev-feedback


Comment:

 The original jQuery UI autocomplete, see
 https://jqueryui.com/autocomplete, populates the search field with the
 highlighted option value when using a keyboard. To reproduce, use your
 keyboard and type "a" in the search field on
 https://jqueryui.com/autocomplete/ and then:
 - use the down/up arrow key on your keyboard to highlight the search
 results
 - notice the field gets populated
 In the current WP implementation this doesn't happen because jQuery UI
 autocomplete expects an `item.value` which is undefined. Thus, the search
 field gets emptied.

 By the way, neither of these two behaviors is ideal for accessibility. The
 input field value should never be changed while using the arrow keys. When
 users type, say, "des" and then use the arrow keys but then they want to
 refine the search completing what they were typing (say "des" and then
 "ign") , they will find the search field empty and will be forced to start
 typing the search term from scratch.

 This is especially confusing when using a screen reader, I'd strongly
 recommend to try to override what happens when the menu items are focused.
 See `menufocus` in jQuery UI autocomplete. Any help would be greatly
 appreciated :)

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


More information about the wp-trac mailing list