Merge pull request #12251 from DesWurstes/master

Return the query with the findcontrolstate
This commit is contained in:
Tim van der Meij 2020-08-21 00:08:02 +02:00 committed by GitHub
commit 2e95d08f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -2438,12 +2438,18 @@ function webViewerUpdateFindMatchesCount({ matchesCount }) {
} }
} }
function webViewerUpdateFindControlState({ state, previous, matchesCount }) { function webViewerUpdateFindControlState({
state,
previous,
matchesCount,
rawQuery,
}) {
if (PDFViewerApplication.supportsIntegratedFind) { if (PDFViewerApplication.supportsIntegratedFind) {
PDFViewerApplication.externalServices.updateFindControlState({ PDFViewerApplication.externalServices.updateFindControlState({
result: state, result: state,
findPrevious: previous, findPrevious: previous,
matchesCount, matchesCount,
rawQuery,
}); });
} else { } else {
PDFViewerApplication.findBar.updateUIState(state, previous, matchesCount); PDFViewerApplication.findBar.updateUIState(state, previous, matchesCount);

View File

@ -736,6 +736,7 @@ class PDFFindController {
state, state,
previous, previous,
matchesCount: this._requestMatchesCount(), matchesCount: this._requestMatchesCount(),
rawQuery: this._state ? this._state.query : null,
}); });
} }
} }