Merge pull request #2703 from timvandermeij/close-findbar-without-focus

Close findbar also when focus is away from it
This commit is contained in:
Yury Delendik 2013-02-10 10:46:54 -08:00
commit 249dad8e46

View File

@ -3299,6 +3299,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