From 1f4b896d4e5587c820915c40132a481558984c71 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 10 Feb 2013 16:14:17 +0100 Subject: [PATCH] Squashing commits for the close findbar feature --- web/viewer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/viewer.js b/web/viewer.js index 184528c43..8efae3d93 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -3296,6 +3296,12 @@ window.addEventListener('keydown', function keydown(evt) { PDFView.page--; handled = true; break; + case 27: // esc key + if (!PDFView.supportsIntegratedFind && PDFFindBar.opened) { + PDFFindBar.close(); + handled = true; + } + break; case 40: // down arrow case 34: // pg down case 32: // spacebar