Skip to content

Commit

Permalink
Fix shortcut key and toggling back to screen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby authored Jun 7, 2018
1 parent 7b5aa04 commit d03b644
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pdfexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ var PdfExport = ( function( Reveal ){
function installKeyBindings(){
var config = Reveal.getConfig();
var shortcut = config.pdfExportShortcut || 'E';
var keyboard = {};
if( !config.keyboard ){
return;
}
var keyboard = config.keyboard === true ? {} : config.keyboard;
keyboard[ shortcut.toUpperCase().charCodeAt( 0 ) ] = togglePdfExport;

Reveal.registerKeyboardShortcut( shortcut, 'PDF export mode' );
Expand Down

0 comments on commit d03b644

Please sign in to comment.