[wp-trac] [WordPress Trac] #39074: No method to move meta boxes using keyboard

WordPress Trac noreply at wordpress.org
Sat Jan 18 09:07:30 UTC 2020


#39074: No method to move meta boxes using keyboard
-------------------------------------+-------------------------------------
 Reporter:  joedolson                |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.4
Component:  Editor                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  wpcampus-report needs-   |     Focuses:  ui, accessibility,
  design has-patch                   |  administration
-------------------------------------+-------------------------------------
Changes (by xkon):

 * keywords:  wpcampus-report needs-design needs-patch => wpcampus-report
     needs-design has-patch


Comment:

 [attachment:"39074.diff"] makes a small start as a proposal.

 It adds 2 extra buttons as `handle-order-next` and `handle-order-prev` on
 the meta box header.

 For the time being it doesn't handle area changing as well, you can re-
 order only within the same "group" of meta boxes.

 Note that since the buttons are within the `$wp_meta_boxes` the same rules
 apply everywhere that they are used, so this is expanded to Dashboard also
 as well not only Page editing :).

 Unfortunately, I had trouble keeping the focus on the button that was
 selected via the keyboard, I'm not sure how this is possible but do tell
 me if we could somehow fix that and I'll be happy to continue the patches
 here if we're on a good start.

 For the time being, I just used the same dashicon but I'm pretty sure that
 it might be a bit confusing as it would be better for them to be pointing
 "up/down" instead but I wanted them to be different than the open/close
 one that already exists.

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


More information about the wp-trac mailing list