[wp-trac] [WordPress Trac] #31415: Plugin and theme editor focus trap

WordPress Trac noreply at wordpress.org
Sun Feb 22 17:25:16 UTC 2015


#31415: Plugin and theme editor focus trap
---------------------------------------+-----------------------------
 Reporter:  afercia                    |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Administration             |    Version:  4.1
 Severity:  normal                     |   Keywords:
  Focuses:  accessibility, javascript  |
---------------------------------------+-----------------------------
 Reported by Michelle DeYoung during last accessibility testers group
 testing session:

 "I'm not sure what is causing the tab order to stop at the textarea
 element and not allow the user to tab to the next form element in IE and
 Chrome. I tried using 'ESC' then 'Tab' to see if that would allow me to
 exit the textarea, but that only worked in FF."

 Reproduced in Chrome and IE 8:
 - go in plugin-editor.php
 - click or tab inside the textarea
 - type something
 - click or tab outside the textarea (press Escape and then Tab)
 - everything works OK

 Refresh and repeat the previous steps and once inside the textarea:
 - insert a tab character (press Tab)
 - click or tab outside the textarea (press Escape and then Tab)
 - the textarea is permanently  focused

 Keyboard users will be trapped, there's no way to move outside of the
 textarea using only the keyboard.

 In the attached patch, I'd propose to simple remove the "lastkey" related
 stuff, I guess it was meant for Opera 12 and maybe no more necessary
 unless I'm missing something. Added also a little fix for Opera 27.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31415>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list