Merge pull request #10358 from tsilvap/toggle-sidebar-keybinding

Add keyboard shortcut to toggle sidebar (F4, same as Adobe Reader).
This commit is contained in:
Tim van der Meij 2018-12-16 20:38:13 +01:00 committed by GitHub
commit bc465695d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2313,6 +2313,10 @@ function webViewerKeyDown(evt) {
case 82: // 'r' case 82: // 'r'
PDFViewerApplication.rotatePages(90); PDFViewerApplication.rotatePages(90);
break; break;
case 115: // F4
PDFViewerApplication.pdfSidebar.toggle();
break;
} }
if (turnPage !== 0 && if (turnPage !== 0 &&