From da704c0b1e26189be9bf1af842351ba2f4ffc048 Mon Sep 17 00:00:00 2001 From: Jade McGough Date: Mon, 8 May 2017 16:10:05 -0700 Subject: [PATCH] avoid using deprecated keydown attribute --- ui/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/index.js b/ui/src/index.js index 37abcc444..5cd09fbb9 100644 --- a/ui/src/index.js +++ b/ui/src/index.js @@ -57,7 +57,7 @@ browserHistory.listen(() => { window.addEventListener('keyup', event => { const escapeKeyCode = 27 - if (event.keyCode === escapeKeyCode) { + if (event.key === 'Escape' || event.which === escapeKeyCode) { dispatch(disablePresentationMode()) } })