[wp-trac] [WordPress Trac] #49459: Allow Ctrl+Y redo in post editor

WordPress Trac noreply at wordpress.org
Fri Apr 10 14:39:52 UTC 2020


#49459: Allow Ctrl+Y redo in post editor
--------------------------+----------------------------
 Reporter:  slapbox       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.5
Component:  Editor        |     Version:  5.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  accessibility
--------------------------+----------------------------

Comment (by afercia):

 Looks like the related code of the block editor hardcodes shortcuts for
 only one platform (macOS). Instead, these shortcuts should dynamically
 change based on the operating system to match the users expectations.

 {{{
                 registerShortcut( {
                         name: 'core/editor/undo',
                         category: 'global',
                         description: __( 'Undo your last changes.' ),
                         keyCombination: {
                                 modifier: 'primary',
                                 character: 'z',
                         },
                 } );

                 registerShortcut( {
                         name: 'core/editor/redo',
                         category: 'global',
                         description: __( 'Redo your last undo.' ),
                         keyCombination: {
                                 modifier: 'primaryShift',
                                 character: 'z',
                         },
                 } );
 }}}

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


More information about the wp-trac mailing list