mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Presentation mode shortcut implementation
This commit is contained in:
parent
0dd0e2ee64
commit
343bb7488a
1 changed files with 10 additions and 0 deletions
|
@ -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) {
|
if (handled) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue