1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Presentation mode shortcut implementation

This commit is contained in:
Tim van der Meij 2013-07-18 16:28:06 +02:00
parent 0dd0e2ee64
commit 343bb7488a

View file

@ -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;