Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/filters-search.js

Issue 29328825: Issue 2580 - Fixed: Search text doesn't get selected when opening findbar again (Closed)
Patch Set: Created Oct. 5, 2015, 10:17 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters-search.js
===================================================================
--- a/chrome/content/ui/filters-search.js
+++ b/chrome/content/ui/filters-search.js
@@ -206,6 +206,12 @@
this._resultListeners.splice(index, 1);
},
+ getInitialSelection: function()
+ {
+ for (let listener of this._resultListeners)
+ listener.onCurrentSelection(null, true);
+ },
+
// Irrelevant for us
requestMatchesCount: function(searchString, matchLimit, linksOnly) {},
highlight: function(highlight, word) {},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld