浏览代码

relax keyboard blocking condition #899

Hakim El Hattab 11 年之前
父节点
当前提交
c974756326
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      js/reveal.js

+ 1 - 2
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