fix: fix return focus on keyboard-clicking media (#1306)

fixes #1305
This commit is contained in:
Nolan Lawson 2019-07-07 12:09:29 -07:00 committed by GitHub
parent 19566bda2e
commit b26ec958a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,8 @@ function onEvent (e) {
return // ignore if the user is selecting text inside the clickable area
}
}
e.preventDefault()
e.stopPropagation()
callbacks[key](e)
}
}