浏览代码

Pass through key event when calling keyboardCondition() to allow conditional function to filter on key codes

Greg Denehy 7 年之前
父节点
当前提交
8bf9986fa2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -3940,7 +3940,7 @@
 
 		// If there's a condition specified and it returns false,
 		// ignore this event
-		if( typeof config.keyboardCondition === 'function' && config.keyboardCondition() === false ) {
+		if( typeof config.keyboardCondition === 'function' && config.keyboardCondition(event) === false ) {
 			return true;
 		}