mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Squashing commits for the close findbar feature
This commit is contained in:
parent
8697c72aa2
commit
1f4b896d4e
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue