Skip to content

Commit

Permalink
fix #1307
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Apr 17, 2017
1 parent c565ad1 commit e5fe066
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class Keyboard extends Module {
this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true, prefix: /^.?$/ }, handleBackspace);
this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true, suffix: /^.?$/ }, handleDelete);
}
// this.addBinding({ key: Keyboard.keys.BACKSPACE }, { ctrlKey: true }, function() {});
// this.addBinding({ key: Keyboard.keys.DELETE }, { ctrlKey: true }, function() {});
this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: false }, handleDeleteRange);
this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: false }, handleDeleteRange);
this.addBinding({ key: Keyboard.keys.BACKSPACE }, { empty: true, shortKey: true }, handleBackspace);
Expand Down Expand Up @@ -159,6 +157,10 @@ Keyboard.DEFAULTS = {
'outdent backspace': {
key: Keyboard.keys.BACKSPACE,
collapsed: true,
shiftKey: null,
metaKey: null,
ctrlKey: null,
altKey: null,
format: ['blockquote', 'indent', 'list'],
offset: 0,
handler: function(range, context) {
Expand Down

0 comments on commit e5fe066

Please sign in to comment.