Skip to content

Commit

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

This reverts commit 32b1f92.
  • Loading branch information
talldan authored Aug 28, 2018
1 parent 32b1f92 commit 6ffb474
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>Shift</kbd>+<kbd>⌘X</kbd> Remove the selected block(s).
* <kbd>Option</kbd>+<kbd>⌘Backspace</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: primaryShift( 'x' ),
keyCombination: primaryAlt( 'backspace' ),
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",
"+",
"Shift",
"Alt",
"+",
"X",
"Backspace",
],
},
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.primaryShift( 'x' ),
display: displayShortcut.primaryShift( 'x' ),
raw: rawShortcut.primaryAlt( 'backspace' ),
display: displayShortcut.primaryAlt( 'bksp' ),
},
insertBefore: {
raw: rawShortcut.primaryAlt( 't' ),
Expand Down

0 comments on commit 6ffb474

Please sign in to comment.