Bladeren bron

Fixed notes.js to account for upstream updates

Greg Denehy 7 jaren geleden
bovenliggende
commit
e16508477a
1 gewijzigde bestanden met toevoegingen van 3 en 4 verwijderingen
  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();
+		} );
 
 	}