Return the query with the findcontrols
This commit is contained in:
parent
b52b36f6a5
commit
72f48ee089
@ -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);
|
||||||
|
@ -736,6 +736,7 @@ class PDFFindController {
|
|||||||
state,
|
state,
|
||||||
previous,
|
previous,
|
||||||
matchesCount: this._requestMatchesCount(),
|
matchesCount: this._requestMatchesCount(),
|
||||||
|
rawQuery: this._state ? this._state.query : null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user