ソースを参照

Merge pull request #303 from DrBenton/master

Small additions around "togglePause()"
Hakim El Hattab 12 年 前
コミット
305e70d99b
1 ファイル変更5 行追加2 行削除
  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,