Skip to content

Commit

Permalink
fix #1307
Browse files Browse the repository at this point in the history
control+backspace/delete is a noop in Word/Docs
  • Loading branch information
jhchen committed Feb 10, 2017
1 parent aec672e commit d06dde3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ 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.listen();
Expand Down

0 comments on commit d06dde3

Please sign in to comment.