From d03b644e75af9e2c0b829b50a74b9b0778575a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 8 Jun 2018 01:18:25 +0200 Subject: [PATCH] Fix shortcut key and toggling back to screen mode --- pdfexport.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdfexport.js b/pdfexport.js index e70f89a..0408636 100644 --- a/pdfexport.js +++ b/pdfexport.js @@ -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' );