aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-05-17 16:00:40 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-05-17 16:00:40 +0200
commitc974756326b25d14be3d5cd31e400a2b8e63ac3c (patch)
tree7c74ee515240a9a7da4f8c2b1a64e0d5a431afc9 /js
parent252200f9f3e8efaa05c207d44f8e0241303cc571 (diff)
downloadperl-software-in-gnu-guix-c974756326b25d14be3d5cd31e400a2b8e63ac3c.tar
perl-software-in-gnu-guix-c974756326b25d14be3d5cd31e400a2b8e63ac3c.tar.gz
relax keyboard blocking condition #899
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 1ff0dcb..a1d9caa 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3213,8 +3213,7 @@
// Check if there's a focused element that could be using
// the keyboard
- var activeElement = document.activeElement;
- var hasFocus = !!( document.activeElement && ( document.activeElement.type || document.activeElement.href || document.activeElement.contentEditable !== 'inherit' ) );
+ var hasFocus = !!( document.activeElement && ( document.activeElement.type || document.activeElement.contentEditable !== 'inherit' ) );
// Disregard the event if there's a focused element or a
// keyboard modifier key is present