Skip to content

Commit

Permalink
Block editor: don't register shortcut for 'inert' editor (WordPress#5…
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

0 comments on commit a99575c

Please sign in to comment.