diff --git a/packages/edit-site/src/components/keyboard-shortcuts/edit-mode.js b/packages/edit-site/src/components/keyboard-shortcuts/edit-mode.js index 7b8befdd414a6b..10b198eb73d348 100644 --- a/packages/edit-site/src/components/keyboard-shortcuts/edit-mode.js +++ b/packages/edit-site/src/components/keyboard-shortcuts/edit-mode.js @@ -76,6 +76,7 @@ function KeyboardShortcutsEditMode() { event.preventDefault(); } ); + // Only opens the list view. Other functionality for this shortcut happens in the rendered sidebar. useShortcut( 'core/edit-site/toggle-list-view', () => { if ( isListViewOpen ) { return; diff --git a/packages/edit-site/src/components/keyboard-shortcuts/index.js b/packages/edit-site/src/components/keyboard-shortcuts/index.js index a2f06b85d6082b..0beecbb3430084 100644 --- a/packages/edit-site/src/components/keyboard-shortcuts/index.js +++ b/packages/edit-site/src/components/keyboard-shortcuts/index.js @@ -93,6 +93,7 @@ function KeyboardShortcuts() { event.preventDefault(); } ); + // Only opens the list view. Other functionality for this shortcut happens in the rendered sidebar. useShortcut( 'core/edit-site/toggle-list-view', () => { if ( ! isListViewOpen ) { return;