Merge pull request #9339 from bansalnitish/enter-key

Added enter key functionality for presentation mode
This commit is contained in:
Tim van der Meij 2018-01-05 22:55:06 +01:00 committed by GitHub
commit a3b2456c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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') {