aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-03-02 12:10:26 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-03-02 12:10:26 +0100
commitfc568b552429ce97bcc98aa0b021c4242c558e9e (patch)
treea0ed04795a626050374adb060efe5e5a7d4ceb9b
parentb4574791e0b63a128fef450be5cd8d8c103ae1f4 (diff)
parent76c5726c040000a6d8ae3122681b3afb5e309c85 (diff)
downloadperl-software-in-gnu-guix-fc568b552429ce97bcc98aa0b021c4242c558e9e.tar
perl-software-in-gnu-guix-fc568b552429ce97bcc98aa0b021c4242c558e9e.tar.gz
Merge branch 'patch-1' of https://github.com/jhofker/reveal.js into dev
-rw-r--r--js/reveal.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 3520f0c..a1a91d0 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -4054,7 +4054,10 @@
// If, after clicking a link or similar and we're coming back,
// focus the document.body to ensure we can use keyboard shortcuts
if( isHidden === false && document.activeElement !== document.body ) {
- document.activeElement.blur();
+ // Not all elements support .blur() - SVGs among them.
+ if (typeof document.activeElement.blur === 'function') {
+ document.activeElement.blur();
+ }
document.body.focus();
}