From e942a9de41931d99985e7f3933da01df553bfff7 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Thu, 2 May 2024 14:34:29 +0900 Subject: [PATCH] Change modifier key --- docs/getting-started/faq.md | 4 ++-- .../block-editor/src/components/keyboard-shortcuts/index.js | 4 ++-- .../editor/various/block-editor-keyboard-shortcuts.spec.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/getting-started/faq.md b/docs/getting-started/faq.md index ab72de8b7b529..8642e59e90c91 100644 --- a/docs/getting-started/faq.md +++ b/docs/getting-started/faq.md @@ -225,8 +225,8 @@ This is the canonical list of keyboard shortcuts: / - Create a group block from the selected block(s). - Ctrl+Alt+G + Create a group block from the selected multiple blocks. + Ctrl+G G diff --git a/packages/block-editor/src/components/keyboard-shortcuts/index.js b/packages/block-editor/src/components/keyboard-shortcuts/index.js index ecd0550fa2b3d..9b83844646922 100644 --- a/packages/block-editor/src/components/keyboard-shortcuts/index.js +++ b/packages/block-editor/src/components/keyboard-shortcuts/index.js @@ -148,10 +148,10 @@ function KeyboardShortcutsRegister() { name: 'core/block-editor/group', category: 'block', description: __( - 'Create a group block from the selected block(s).' + 'Create a group block from the selected multiple blocks.' ), keyCombination: { - modifier: 'primaryAlt', + modifier: 'primary', character: 'g', }, } ); diff --git a/test/e2e/specs/editor/various/block-editor-keyboard-shortcuts.spec.js b/test/e2e/specs/editor/various/block-editor-keyboard-shortcuts.spec.js index df6d1e793c2fb..1962e2bc4202a 100644 --- a/test/e2e/specs/editor/various/block-editor-keyboard-shortcuts.spec.js +++ b/test/e2e/specs/editor/various/block-editor-keyboard-shortcuts.spec.js @@ -229,7 +229,7 @@ test.describe( 'Block editor keyboard shortcuts', () => { // Multiselect via keyboard. await pageUtils.pressKeys( 'primary+a', { times: 2 } ); - await pageUtils.pressKeys( 'primaryAlt+g' ); // Keyboard shortcut for Insert before. + await pageUtils.pressKeys( 'primary+g' ); // Keyboard shortcut for Insert before. await expect.poll( editor.getBlocks ).toMatchObject( [ { name: 'core/group', @@ -263,7 +263,7 @@ test.describe( 'Block editor keyboard shortcuts', () => { } ) .first(); await editor.selectBlocks( firstParagraphBlock ); - await pageUtils.pressKeys( 'primaryAlt+g' ); + await pageUtils.pressKeys( 'primary+g' ); await expect.poll( editor.getBlocks ).toMatchObject( [ {