mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Added enter key functionality for presentation mode
This commit is contained in:
parent
6b2ed504b7
commit
d60cba5065
1 changed files with 2 additions and 0 deletions
|
@ -2202,6 +2202,7 @@ function webViewerKeyDown(evt) {
|
|||
handled = true;
|
||||
}
|
||||
break;
|
||||
case 13: // enter key
|
||||
case 40: // down arrow
|
||||
case 34: // pg down
|
||||
case 32: // spacebar
|
||||
|
@ -2255,6 +2256,7 @@ function webViewerKeyDown(evt) {
|
|||
|
||||
if (cmd === 4) { // shift-key
|
||||
switch (evt.keyCode) {
|
||||
case 13: // enter key
|
||||
case 32: // spacebar
|
||||
if (!isViewerInPresentationMode &&
|
||||
pdfViewer.currentScaleValue !== 'page-fit') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue