diff --git a/web/viewer.js b/web/viewer.js index e1a24b9c5..ae968334a 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -3010,6 +3010,16 @@ window.addEventListener('keydown', function keydown(evt) { } } + // CTRL+ALT or Option+Command + if (cmd === 3 || cmd === 10) { + switch (evt.keyCode) { + case 80: // p + PDFView.presentationMode(); + handled = true; + break; + } + } + if (handled) { evt.preventDefault(); return;