diff --git a/js/reveal.js b/js/reveal.js
index 1ff0dcbc3a59c1fd452a9719a839188df657c053..a1d9caa91d4a1587571abb1349bd1f902cd64ab9 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