aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes
diff options
context:
space:
mode:
authorrohithpr <praroh2@gmail.com>2015-10-09 00:14:02 +0530
committerrohithpr <praroh2@gmail.com>2015-10-09 00:14:02 +0530
commitdd8f95d9a9aa0167defe3388f0097e899a2a8b23 (patch)
treed05adda8d2aaa17149cf18897c9e394a6caa4e19 /plugin/notes
parent34b82baa6724a336ede020b33e1bd002529def18 (diff)
downloadfreenode-live-2017-presentation-dd8f95d9a9aa0167defe3388f0097e899a2a8b23.tar
freenode-live-2017-presentation-dd8f95d9a9aa0167defe3388f0097e899a2a8b23.tar.gz
Fixed #1379 - config keyboard now disables 's' key
Diffstat (limited to 'plugin/notes')
-rw-r--r--plugin/notes/notes.js3
1 files changed, 3 insertions, 0 deletions
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();