Skip to content

Commit

Permalink
Change keyboard shortcut for remove block to Cmd+Shift+X / Ctrl+Shift…
Browse files Browse the repository at this point in the history
…+X (#9190)

* Change shortcut for remove block to primary shift x

* Update keyboard shortcut help modal

* Update keyboard shortcuts in faq docs
  • Loading branch information
talldan authored Aug 28, 2018
1 parent 6c846f8 commit 32b1f92
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/reference/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This is the canonical list of keyboard shortcuts:
### Block shortcuts

* <kbd>Shift</kbd>+<kbd>⌘D</kbd> Duplicate the selected block(s).
* <kbd>Option</kbd>+<kbd>⌘Backspace</kbd> Remove the selected block(s).
* <kbd>Shift</kbd>+<kbd>⌘X</kbd> Remove the selected block(s).
* <kbd>Option</kbd>+<kbd>⌘T</kbd> Insert a new block before the selected block(s).
* <kbd>Option</kbd>+<kbd>⌘Y</kbd> Insert a new block after the selected block(s).
* <kbd>/</kbd> Change the block type after adding a new paragraph.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const blockShortcuts = {
description: __( 'Duplicate the selected block(s).' ),
},
{
keyCombination: primaryAlt( 'backspace' ),
keyCombination: primaryShift( 'x' ),
description: __( 'Remove the selected block(s).' ),
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ exports[`KeyboardShortcutHelpModal should match snapshot when the modal is activ
"keyCombination": Array [
"Ctrl",
"+",
"Alt",
"Shift",
"+",
"Backspace",
"X",
],
},
Object {
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/block-settings-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const shortcuts = {
display: displayShortcut.primaryShift( 'd' ),
},
removeBlock: {
raw: rawShortcut.primaryAlt( 'backspace' ),
display: displayShortcut.primaryAlt( 'bksp' ),
raw: rawShortcut.primaryShift( 'x' ),
display: displayShortcut.primaryShift( 'x' ),
},
insertBefore: {
raw: rawShortcut.primaryAlt( 't' ),
Expand Down

0 comments on commit 32b1f92

Please sign in to comment.