Преглед на файлове

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

rohithpr преди 9 години
родител
ревизия
dd8f95d9a9
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      plugin/notes/notes.js

+ 3 - 0
plugin/notes/notes.js

@@ -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();