Fixed #1379 - config keyboard now disables 's' key

edit
rohithpr 2015-10-09 00:14:02 +05:30
parent 34b82baa67
commit dd8f95d9a9
1 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,9 @@ var RevealNotes = (function() {
// modifier is present
if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
// Disregard the event if keyboard is disabled
if ( Reveal.getConfig().keyboard === false ) return;
if( event.keyCode === 83 ) {
event.preventDefault();
openNotes();