Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Site Editor]: Register block editor shortcuts #37577

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 />
Mamaduka marked this conversation as resolved.
Show resolved Hide resolved
<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