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
1 changed files with 2 additions and 0 deletions

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