diff --git a/src/components/popover/Popover.js b/src/components/popover/Popover.js index 8053a27..e0c393b 100644 --- a/src/components/popover/Popover.js +++ b/src/components/popover/Popover.js @@ -166,7 +166,7 @@ export default class Popover extends Component { }; handleKeyUp = (e) => { - if (e.keyCode === 27) { + if (e.key === 'Escape') { this.props.onRequestClose && this.props.onRequestClose(e, 'escapePress'); } };