include speaker view keyboard shortcut when applicable #1466
This commit is contained in:
		| @@ -4684,6 +4684,11 @@ | ||||
| 		// Programatically triggers a keyboard event | ||||
| 		triggerKey: function( keyCode ) { | ||||
| 			onDocumentKeyDown( { keyCode: keyCode } ); | ||||
| 		}, | ||||
|  | ||||
| 		// Registers a new shortcut to include in the help overlay | ||||
| 		registerKeyboardShortcut: function( key, value ) { | ||||
| 			keyboardShortcuts[key] = value; | ||||
| 		} | ||||
| 	}; | ||||
|  | ||||
|   | ||||
| @@ -120,6 +120,9 @@ var RevealNotes = (function() { | ||||
| 			} | ||||
| 		}, false ); | ||||
|  | ||||
| 		// Show our keyboard shortcut in the reveal.js help overlay | ||||
| 		if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' ); | ||||
|  | ||||
| 	} | ||||
|  | ||||
| 	return { open: openNotes }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user