[wp-trac] [WordPress Trac] #64169: Add JavaScript that allows front-end elements with role="button" to be triggered with the spacebar

WordPress Trac noreply at wordpress.org
Fri Oct 31 22:48:13 UTC 2025


#64169: Add JavaScript that allows front-end elements with role="button" to be
triggered with the spacebar
-------------------------------------+----------------------------
 Reporter:  alh0319                  |       Owner:  (none)
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Script Loader            |     Version:
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  reporter-feedback close  |     Focuses:  accessibility
-------------------------------------+----------------------------

Comment (by SirLouen):

 Replying to [comment:1 westonruter]:
 > What would happen if core adds such a global event listener, but then a
 plugin already has such an event listener? Wouldn't that result in
 duplicated events being triggered when the spacebar is pressed?

 What would happen if no plugin were adding such an event listener?
 Isn't [https://developer.mozilla.org/en-
 US/docs/Web/Accessibility/ARIA/Reference/Roles/button_role#onkeydown
 onKeyDown] a required event handler?

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


More information about the wp-trac mailing list