Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Commit

Permalink
include speaker view keyboard shortcut when applicable hakimel#1466
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jan 8, 2016
1 parent 56d5c68 commit 221b429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4684,6 +4684,11 @@
// Programatically triggers a keyboard event
triggerKey: function( keyCode ) {
onDocumentKeyDown( { keyCode: keyCode } );
},

// Registers a new shortcut to include in the help overlay
registerKeyboardShortcut: function( key, value ) {
keyboardShortcuts[key] = value;
}
};

Expand Down
3 changes: 3 additions & 0 deletions plugin/notes/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ var RevealNotes = (function() {
}
}, false );

// Show our keyboard shortcut in the reveal.js help overlay
if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' );

}

return { open: openNotes };
Expand Down

0 comments on commit 221b429

Please sign in to comment.