Skip to content

Commit

Permalink
Remove block-level editable shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jan 17, 2018
1 parent d8bd451 commit df0497a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blocks/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ export default class Editable extends Component {
onInit() {
this.updateFocus();
this.registerCustomFormatters();

// Remove all default block-level shortcuts.
'123456789'.split( '' ).forEach( ( number ) => this.editor.shortcuts.remove( `access+${ number }` ) );
}

adaptFormatter( options ) {
Expand Down

0 comments on commit df0497a

Please sign in to comment.