Skip to content

Commit

Permalink
Remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Jul 30, 2024
1 parent 554fbae commit 69b76e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/editor/src/components/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ function useEditorCommandLoader() {
name: 'core/open-shortcut-help',
label: __( 'Keyboard shortcuts' ),
icon: keyboard,
callback: ( { close } ) => {
close();
callback: () => {
openModal( 'editor/keyboard-shortcut-help' );
},
} );
Expand All @@ -109,8 +108,7 @@ function useEditorCommandLoader() {
commands.push( {
name: 'core/open-preferences',
label: __( 'Editor preferences' ),
callback: ( { close } ) => {
close();
callback: () => {
openModal( 'editor/preferences' );
},
} );
Expand Down

0 comments on commit 69b76e4

Please sign in to comment.