diff --git a/lib/components/ModalPortal.js b/lib/components/ModalPortal.js index 603d4204..da496f8d 100644 --- a/lib/components/ModalPortal.js +++ b/lib/components/ModalPortal.js @@ -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() {