Prechádzať zdrojové kódy

Merge pull request #303 from DrBenton/master

Small additions around "togglePause()"
Hakim El Hattab 12 rokov pred
rodič
commit
305e70d99b
1 zmenil súbory, kde vykonal 5 pridanie a 2 odobranie
  1. 5 2
      js/reveal.js

+ 5 - 2
js/reveal.js

@@ -1398,8 +1398,8 @@ var Reveal = (function(){
 			case 32: isOverviewActive() ? deactivateOverview() : navigateNext(); break;
 			// return
 			case 13: isOverviewActive() ? deactivateOverview() : triggered = false; break;
-			// b, period
-			case 66: case 190: togglePause(); break;
+			// b, period, Logitech presenter tools "black screen" button
+			case 66: case 190: case 191: togglePause(); break;
 			// f
 			case 70: enterFullscreen(); break;
 			default:
@@ -1627,6 +1627,9 @@ var Reveal = (function(){
 		// Toggles the overview mode on/off
 		toggleOverview: toggleOverview,
 
+		// Toggles the "black screen" mode on/off
+		togglePause: togglePause,
+
 		// Adds or removes all internal event listeners (such as keyboard)
 		addEventListeners: addEventListeners,
 		removeEventListeners: removeEventListeners,