From cba729f2bf86b70014418f0c0ab6f3c8c7caf065 Mon Sep 17 00:00:00 2001 From: David <33458145+davidmcpowell@users.noreply.github.com> Date: Tue, 2 Jul 2024 13:10:49 +0100 Subject: [PATCH] Merge pull request #19180 from overleaf/dp-numpad-plus Add + key to pdf zoom shortcut so that numpad + key works GitOrigin-RevId: 2080c876b7a5c6810ebb170b1451d62158ea2f31 --- .../js/features/pdf-preview/components/pdf-js-viewer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/frontend/js/features/pdf-preview/components/pdf-js-viewer.tsx b/services/web/frontend/js/features/pdf-preview/components/pdf-js-viewer.tsx index 216c47c6d9..01650346bb 100644 --- a/services/web/frontend/js/features/pdf-preview/components/pdf-js-viewer.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/pdf-js-viewer.tsx @@ -446,6 +446,7 @@ function PdfJsViewer({ url, pdfFile }: PdfJsViewerProps) { } if (event.metaKey || event.ctrlKey) { switch (event.key) { + case '+': case '=': event.preventDefault() setZoom('zoom-in')