avoid using deprecated keydown attribute

pull/1417/head
Jade McGough 2017-05-08 16:10:05 -07:00
parent 556e756b0e
commit da704c0b1e
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}
})