Merge pull request #3922 from Rob--W/ctrl-f-opens-find
Open Find bar instead of toggling it on Ctrl + F
This commit is contained in:
commit
762063f034
@ -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.findField.select();
|
||||
this.findField.focus();
|
||||
},
|
||||
|
@ -1926,7 +1926,7 @@ window.addEventListener('keydown', function keydown(evt) {
|
||||
switch (evt.keyCode) {
|
||||
case 70: // f
|
||||
if (!PDFView.supportsIntegratedFind) {
|
||||
PDFFindBar.toggle();
|
||||
PDFFindBar.open();
|
||||
handled = true;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user