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:
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) {
|
||||
evt.preventDefault();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue