Remove a couple of unnecessary PresentationMode-checks in webViewerKeyDown

Given that the `PDFViewerApplication.{zoomIn, zoomOut}` methods already contain PresentationMode-checks, this is just unnecessary duplication.
This commit is contained in:
Jonas Jenwald 2023-02-04 22:44:46 +01:00
parent ea1ec7ffab
commit d930f267f6

View File

@ -2968,17 +2968,13 @@ function webViewerKeyDown(evt) {
case 107: // FF '+' and '='
case 187: // Chrome '+'
case 171: // FF with German keyboard
if (!isViewerInPresentationMode) {
PDFViewerApplication.zoomIn();
}
PDFViewerApplication.zoomIn();
handled = true;
break;
case 173: // FF/Mac '-'
case 109: // FF '-'
case 189: // Chrome '-'
if (!isViewerInPresentationMode) {
PDFViewerApplication.zoomOut();
}
PDFViewerApplication.zoomOut();
handled = true;
break;
case 48: // '0'