From dd8f95d9a9aa0167defe3388f0097e899a2a8b23 Mon Sep 17 00:00:00 2001 From: rohithpr Date: Fri, 9 Oct 2015 00:14:02 +0530 Subject: [PATCH] Fixed #1379 - config keyboard now disables 's' key --- plugin/notes/notes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js index a0e8021..202e73b 100644 --- a/plugin/notes/notes.js +++ b/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();