From 8f7cefdc96478fa78893eaf2c0887b32447b2fce Mon Sep 17 00:00:00 2001 From: Clay Diffrient Date: Mon, 29 Sep 2014 10:08:24 -0600 Subject: [PATCH] Updates keyboard handling to use keyCode --- lib/components/ModalPortal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {