Skip to content

Commit

Permalink
Merge pull request #12251 from DesWurstes/master
Browse files Browse the repository at this point in the history
Return the query with the findcontrolstate
  • Loading branch information
timvandermeij authored Aug 20, 2020
2 parents 164be97 + 72f48ee commit 2e95d08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2438,12 +2438,18 @@ function webViewerUpdateFindMatchesCount({ matchesCount }) {
}
}

function webViewerUpdateFindControlState({ state, previous, matchesCount }) {
function webViewerUpdateFindControlState({
state,
previous,
matchesCount,
rawQuery,
}) {
if (PDFViewerApplication.supportsIntegratedFind) {
PDFViewerApplication.externalServices.updateFindControlState({
result: state,
findPrevious: previous,
matchesCount,
rawQuery,
});
} else {
PDFViewerApplication.findBar.updateUIState(state, previous, matchesCount);
Expand Down
1 change: 1 addition & 0 deletions web/pdf_find_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ class PDFFindController {
state,
previous,
matchesCount: this._requestMatchesCount(),
rawQuery: this._state ? this._state.query : null,
});
}
}
Expand Down

0 comments on commit 2e95d08

Please sign in to comment.