Skip to content

Commit

Permalink
Change modifier key
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed May 2, 2024
1 parent b9a333d commit e942a9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/getting-started/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ This is the canonical list of keyboard shortcuts:
<td><kbd>/</kbd></td>
</tr>
<tr>
<td>Create a group block from the selected block(s).</td>
<td><kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>G</kbd></td>
<td>Create a group block from the selected multiple blocks.</td>
<td><kbd>Ctrl</kbd>+<kbd>G</kbd></td>
<td><kbd>⌥</kbd><kbd>⌘</kbd><kbd>⇧</kbd><kbd>G</kbd></td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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( [
{
Expand Down

0 comments on commit e942a9d

Please sign in to comment.