mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Populate the find field with the search query when URL has #search hash
These changes improves the existing search functionality triggered when the URL contains a `#search` hash. In addition to performing the actual search immediately like before, this will ensure the search text field inside the find bar gets populated with the text currently being searched for.
This commit is contained in:
parent
eb4d6a0652
commit
50f73092e1
1 changed files with 4 additions and 0 deletions
|
@ -2349,6 +2349,10 @@ function webViewerFindFromUrlHash(evt) {
|
|||
highlightAll: true,
|
||||
findPrevious: false,
|
||||
});
|
||||
|
||||
if (PDFViewerApplication.findBar) {
|
||||
PDFViewerApplication.findBar.findField.value = evt.query;
|
||||
}
|
||||
}
|
||||
|
||||
function webViewerUpdateFindMatchesCount({ matchesCount }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue