Merge pull request #2703 from timvandermeij/close-findbar-without-focus
Close findbar also when focus is away from it
This commit is contained in:
commit
249dad8e46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user