Merge pull request #12422 from Snuffleupagus/find-not-shiftKey

Don't trigger searching, in the `GENERIC` viewer, when <kbd>Shift</kbd> is used together with the regular keyboard shortcut (issue 12421)
This commit is contained in:
Tim van der Meij 2020-09-29 22:30:53 +02:00 committed by GitHub
commit d49b2f6cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2714,7 +2714,7 @@ function webViewerKeyDown(evt) {
// either CTRL or META key with optional SHIFT.
switch (evt.keyCode) {
case 70: // f
if (!PDFViewerApplication.supportsIntegratedFind) {
if (!PDFViewerApplication.supportsIntegratedFind && !evt.shiftKey) {
PDFViewerApplication.findBar.open();
handled = true;
}