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

Fixed #1379 - config keyboard now disables 's' key
This commit is contained in:
Hakim El Hattab 2015-11-09 16:47:21 +01:00
commit a5181e4372
1 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,9 @@ var RevealNotes = (function() {
// modifier is present // modifier is present
if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return; 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 ) { if( event.keyCode === 83 ) {
event.preventDefault(); event.preventDefault();
openNotes(); openNotes();