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:
parent
ea1ec7ffab
commit
d930f267f6
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user