diff options
-rw-r--r-- | js/reveal.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 65ac29f..6a8c2a3 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3872,7 +3872,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(); } |