Browse Source

Merge branch 'shift-space' of https://github.com/remybach/reveal.js into dev

Hakim El Hattab 11 years ago
parent
commit
7439a45b9b
2 changed files with 2 additions and 9 deletions
  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
 		// Disregard the event if there's a focused element or a
 		// keyboard modifier key is present
 		// 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;
 		var triggered = true;
 
 
@@ -1683,7 +1683,7 @@ var Reveal = (function(){
 			// end
 			// end
 			case 35: slide( Number.MAX_VALUE ); break;
 			case 35: slide( Number.MAX_VALUE ); break;
 			// space
 			// space
-			case 32: isOverview() ? deactivateOverview() : navigateNext(); break;
+			case 32: isOverview() ? deactivateOverview() : event.shiftKey ? navigatePrev() : navigateNext(); break;
 			// return
 			// return
 			case 13: isOverview() ? deactivateOverview() : triggered = false; break;
 			case 13: isOverview() ? deactivateOverview() : triggered = false; break;
 			// b, period, Logitech presenter tools "black screen" button
 			// b, period, Logitech presenter tools "black screen" button

File diff suppressed because it is too large
+ 0 - 7
js/reveal.min.js


Some files were not shown because too many files changed in this diff