Skip to content

Commit

Permalink
Merge pull request #1 from claydiffrient/master
Browse files Browse the repository at this point in the history
Updates keyboard handling to use keyCode
  • Loading branch information
ryanflorence committed Sep 29, 2014
2 parents de0b661 + 8f7cefd commit 2277726
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 2277726

Please sign in to comment.