浏览代码

Add shift+space functionality

Remy Bach 11 年之前
父节点
当前提交
9138e4bc20
共有 2 个文件被更改,包括 2 次插入9 次删除
  1. 2 2
      js/reveal.js
  2. 0 7
      js/reveal.min.js

+ 2 - 2
js/reveal.js

@@ -1656,7 +1656,7 @@ var Reveal = (function(){
 
 		// Disregard the event if there's a focused element or a
 		// keyboard modifier key is present
-		if( hasFocus || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
+		if( hasFocus || (event.shiftKey && event.keyCode !== 32) || event.altKey || event.ctrlKey || event.metaKey ) return;
 
 		var triggered = true;
 
@@ -1683,7 +1683,7 @@ var Reveal = (function(){
 			// end
 			case 35: slide( Number.MAX_VALUE ); break;
 			// space
-			case 32: isOverview() ? deactivateOverview() : navigateNext(); break;
+			case 32: isOverview() ? deactivateOverview() : event.shiftKey ? navigatePrev() : navigateNext(); break;
 			// return
 			case 13: isOverview() ? deactivateOverview() : triggered = false; break;
 			// b, period, Logitech presenter tools "black screen" button

文件差异内容过多而无法显示
+ 0 - 7
js/reveal.min.js


部分文件因为文件数量过多而无法显示