Skip to content

Commit

Permalink
Updates keyboard handling to use keyCode
Browse files Browse the repository at this point in the history
  • Loading branch information
claydiffrient committed Sep 29, 2014
1 parent de0b661 commit 8f7cefd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/ModalPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ var ModalPortal = module.exports = React.createClass({
},

handleKeyDown: function(event) {
if (event.key == 9 /*tab*/) scopeTab(this.getDOMNode(), event);
if (event.key == 27 /*esc*/) this.requestClose();
if (event.keyCode == 9 /*tab*/) scopeTab(this.getDOMNode(), event);
if (event.keyCode == 27 /*esc*/) this.requestClose();
},

handleOverlayClick: function() {
Expand Down

0 comments on commit 8f7cefd

Please sign in to comment.