(data)
| 95 | }, |
| 96 | |
| 97 | search(data) { |
| 98 | // NOTE(mrmr1993): On Firefox, window.find moves the window focus away from the HUD. We use |
| 99 | // postFindFocus to put it back, so the user can continue typing. |
| 100 | this.findMode.findInPlace(data.query, { |
| 101 | "postFindFocus": this.hudUI.iframeElement.contentWindow, |
| 102 | }); |
| 103 | |
| 104 | // Show the number of matches in the HUD UI. |
| 105 | const matchCount = FindMode.query.parsedQuery.length > 0 ? FindMode.query.matchCount : 0; |
| 106 | const showMatchText = FindMode.query.rawQuery.length > 0; |
| 107 | this.hudUI.postMessage({ name: "updateMatchesCount", matchCount, showMatchText }); |
| 108 | }, |
| 109 | |
| 110 | // Hide the HUD. |
| 111 | // If :immediate is falsy, then the HUD is faded out smoothly (otherwise it is hidden |
nothing calls this directly
no test coverage detected