Skip to content
Snippets Groups Projects
Commit a5181e43 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

Merge pull request #1391 from rohithpr/notes-key-binding

Fixed #1379 - config keyboard now disables 's' key
parents 50f98963 dd8f95d9
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment