Merge pull request #10196 from Snuffleupagus/findbarclose-findagain-highlightAll
[Regression] Ensure that "Highlight All" is propagated to all pages for 'findagain' events where the findbar was previously closed (PR 10100 follow-up)
This commit is contained in:
commit
74b5d0b022
@ -139,6 +139,16 @@ class PDFFindController {
|
|||||||
this._nextMatch();
|
this._nextMatch();
|
||||||
this._findTimeout = null;
|
this._findTimeout = null;
|
||||||
}, FIND_TIMEOUT);
|
}, FIND_TIMEOUT);
|
||||||
|
} else if (cmd === 'findagain' && !this._dirtyMatch) {
|
||||||
|
const updateHighlightAll = (!this._highlightMatches &&
|
||||||
|
this._state.highlightAll);
|
||||||
|
this._nextMatch();
|
||||||
|
|
||||||
|
// When the findbar was previously closed, and `highlightAll` is set,
|
||||||
|
// ensure that the matches on all active pages are highlighted again.
|
||||||
|
if (updateHighlightAll) {
|
||||||
|
this._updateAllPages();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this._nextMatch();
|
this._nextMatch();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user