Merge pull request #19180 from overleaf/dp-numpad-plus

Add + key to pdf zoom shortcut so that numpad + key works

GitOrigin-RevId: 2080c876b7a5c6810ebb170b1451d62158ea2f31
This commit is contained in:
David 2024-07-02 13:10:49 +01:00 committed by Copybot
parent 15cdec642d
commit cba729f2bf

View file

@ -446,6 +446,7 @@ function PdfJsViewer({ url, pdfFile }: PdfJsViewerProps) {
} }
if (event.metaKey || event.ctrlKey) { if (event.metaKey || event.ctrlKey) {
switch (event.key) { switch (event.key) {
case '+':
case '=': case '=':
event.preventDefault() event.preventDefault()
setZoom('zoom-in') setZoom('zoom-in')