From d930f267f6b268466afb8b18415a26f048eb8a8b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 4 Feb 2023 22:44:46 +0100 Subject: [PATCH] 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. --- web/app.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/app.js b/web/app.js index c4b04559d..5af753a99 100644 --- a/web/app.js +++ b/web/app.js @@ -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'