avoid using deprecated keydown attribute
parent
556e756b0e
commit
da704c0b1e
|
@ -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())
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue