Skip to content

Commit

Permalink
[Site Editor]: Register block editor shortcuts (#37577)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored and noisysocks committed Jan 4, 2022
1 parent d896c11 commit 2dee67d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
BlockTools,
__unstableBlockSettingsMenuFirstItem,
__unstableUseTypingObserver as useTypingObserver,
BlockEditorKeyboardShortcuts,
store as blockEditorStore,
} from '@wordpress/block-editor';
import { useMergeRefs, useViewportMatch } from '@wordpress/compose';
Expand Down Expand Up @@ -108,8 +109,8 @@ export default function BlockEditor( { setIsInserterOpen } ) {
}
} }
>
<BlockEditorKeyboardShortcuts.Register />
<BackButton />

<ResizableEditor
// Reinitialize the editor and reset the states when the template changes.
key={ templateId }
Expand All @@ -127,7 +128,6 @@ export default function BlockEditor( { setIsInserterOpen } ) {
renderAppender={ isTemplatePart ? false : undefined }
/>
</ResizableEditor>

<__unstableBlockSettingsMenuFirstItem>
{ ( { onClose } ) => (
<BlockInspectorButton onClick={ onClose } />
Expand Down

0 comments on commit 2dee67d

Please sign in to comment.