Skip to content

Commit

Permalink
workaround for IE11 not reporting mutation events
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Oct 17, 2016
1 parent c35f2d2 commit 68b99b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class Keyboard extends Module {
this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true, suffix: /^$/ }, handleDelete);
this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: false }, handleDeleteRange);
this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: false }, handleDeleteRange);
if (/Trident/i.test(navigator.userAgent)) {
this.addBinding({ key: Keyboard.keys.BACKSPACE, shortKey: true }, handleBackspace);
this.addBinding({ key: Keyboard.keys.DELETE, shortKey: true }, handleDelete);
}
this.listen();
}

Expand Down

0 comments on commit 68b99b0

Please sign in to comment.