Skip to content

Commit

Permalink
Fixed #1379 - config keyboard now disables 's' key
Browse files Browse the repository at this point in the history
  • Loading branch information
rohithpr committed Oct 8, 2015
1 parent 34b82ba commit dd8f95d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/notes/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dd8f95d

Please sign in to comment.