We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de0b661 commit 8f7cefdCopy full SHA for 8f7cefd
lib/components/ModalPortal.js
@@ -97,8 +97,8 @@ var ModalPortal = module.exports = React.createClass({
97
},
98
99
handleKeyDown: function(event) {
100
- if (event.key == 9 /*tab*/) scopeTab(this.getDOMNode(), event);
101
- if (event.key == 27 /*esc*/) this.requestClose();
+ if (event.keyCode == 9 /*tab*/) scopeTab(this.getDOMNode(), event);
+ if (event.keyCode == 27 /*esc*/) this.requestClose();
102
103
104
handleOverlayClick: function() {
0 commit comments