include speaker view keyboard shortcut when applicable #1466
parent
4ee6769e0f
commit
06cdd9b7cd
|
@ -4684,6 +4684,11 @@
|
||||||
// Programatically triggers a keyboard event
|
// Programatically triggers a keyboard event
|
||||||
triggerKey: function( keyCode ) {
|
triggerKey: function( keyCode ) {
|
||||||
onDocumentKeyDown( { keyCode: 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 );
|
}, false );
|
||||||
|
|
||||||
|
// Show our keyboard shortcut in the reveal.js help overlay
|
||||||
|
if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return { open: openNotes };
|
return { open: openNotes };
|
||||||
|
|
Loading…
Reference in New Issue