From 9669af2541869205163a95c7dcc046e039594ae2 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Tue, 1 Mar 2022 17:08:38 +0000 Subject: [PATCH] updated icon for post and added shortcut to modal --- packages/block-editor/src/autocompleters/link.js | 2 +- .../src/components/keyboard-shortcut-help-modal/config.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/autocompleters/link.js b/packages/block-editor/src/autocompleters/link.js index 8d26aa15941b84..d439c5e6587aa2 100644 --- a/packages/block-editor/src/autocompleters/link.js +++ b/packages/block-editor/src/autocompleters/link.js @@ -3,7 +3,7 @@ */ import apiFetch from '@wordpress/api-fetch'; import { addQueryArgs } from '@wordpress/url'; -import { Icon, page, customPostType as post } from '@wordpress/icons'; +import { Icon, page, post } from '@wordpress/icons'; const SHOWN_SUGGESTIONS = 10; diff --git a/packages/edit-post/src/components/keyboard-shortcut-help-modal/config.js b/packages/edit-post/src/components/keyboard-shortcut-help-modal/config.js index 7b420cabfebb2a..1054f408bfc882 100644 --- a/packages/edit-post/src/components/keyboard-shortcut-help-modal/config.js +++ b/packages/edit-post/src/components/keyboard-shortcut-help-modal/config.js @@ -24,4 +24,8 @@ export const textFormattingShortcuts = [ keyCombination: { modifier: 'primary', character: 'u' }, description: __( 'Underline the selected text.' ), }, + { + keyCombination: { character: '[[' }, + description: __( 'Insert a link to a post or page' ), + }, ];