support escaping from presentation mode with safari

pull/10616/head
Jade McGough 2017-05-08 15:31:13 -07:00
parent 7562409fcd
commit 9ac62d50b2
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ browserHistory.listen(() => {
})
window.addEventListener('keyup', event => {
if (event.key === 'Escape') {
const escapeKeyCode = 27
if (event.keyCode === escapeKeyCode) {
dispatch(disablePresentationMode())
}
})