浏览代码

Fixed notes.js to account for upstream updates

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

+ 3 - 4
plugin/notes/notes.js

@@ -131,10 +131,9 @@ var RevealNotes = (function() {
 		}
 
 		// Open the notes when the 's' key is hit
-		Reveal.addKeyBinding({keyCode: 83, key: 'S', description: 'Speaker notes'}, openNotes);
-
-		// Show our keyboard shortcut in the reveal.js help overlay
-		if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' );
+		Reveal.addKeyBinding({keyCode: 83, key: 'S', description: 'Speaker notes view'}, function() {
+			openNotes();
+		} );
 
 	}