From b26ec958a590e9145b95823ae57492f739b18a0a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 7 Jul 2019 12:09:29 -0700 Subject: [PATCH] fix: fix return focus on keyboard-clicking media (#1306) fixes #1305 --- src/routes/_utils/delegate.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/_utils/delegate.js b/src/routes/_utils/delegate.js index 9edbe631f..b54a80635 100644 --- a/src/routes/_utils/delegate.js +++ b/src/routes/_utils/delegate.js @@ -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) } }