Skip to content

Commit

Permalink
Block editor: don't register shortcut for 'inert' editor (#57984)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Jan 19, 2024
1 parent 4df52ea commit a99575c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export const ExperimentalBlockEditorProvider = withRegistryProvider(

return (
<SlotFillProvider passthrough>
<KeyboardShortcuts.Register />
{ ! settings.__unstableIsPreviewMode && (
<KeyboardShortcuts.Register />
) }
<BlockRefsProvider>{ children }</BlockRefsProvider>
</SlotFillProvider>
);
Expand Down

1 comment on commit a99575c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in a99575c.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7588988200
📝 Reported issues:

Please sign in to comment.