Skip to content

Commit

Permalink
fix UA test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jan 2, 2017
1 parent ec1cdb6 commit 4e9972d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Keyboard extends Module {
});
this.addBinding({ key: Keyboard.keys.ENTER, shiftKey: null }, handleEnter);
this.addBinding({ key: Keyboard.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {});
if (/Gecko/i.test(navigator.userAgent)) {
if (/Firefox/i.test(navigator.userAgent)) {
// Need to handle delete and backspace for Firefox in the general case #1171
this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true }, handleBackspace);
this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true }, handleDelete);
Expand Down

0 comments on commit 4e9972d

Please sign in to comment.