add comment
parent
84f3957658
commit
3bbde66c8b
|
@ -57,6 +57,7 @@ browserHistory.listen(() => {
|
|||
|
||||
window.addEventListener('keyup', event => {
|
||||
const escapeKeyCode = 27
|
||||
// fallback for browsers that don't support event.key
|
||||
if (event.key === 'Escape' || event.keyCode === escapeKeyCode) {
|
||||
dispatch(disablePresentationMode())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue