Ctrl + F opens find bar instead of toggling it
This commit is contained in:
parent
945e370d4f
commit
f013d44999
2 changed files with 6 additions and 5 deletions
|
@ -144,11 +144,12 @@ var PDFFindBar = {
|
|||
},
|
||||
|
||||
open: function() {
|
||||
if (this.opened) return;
|
||||
if (!this.opened) {
|
||||
this.opened = true;
|
||||
this.toggleButton.classList.add('toggled');
|
||||
this.bar.classList.remove('hidden');
|
||||
}
|
||||
|
||||
this.opened = true;
|
||||
this.toggleButton.classList.add('toggled');
|
||||
this.bar.classList.remove('hidden');
|
||||
this.findField.select();
|
||||
this.findField.focus();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue