My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 14: Merge Search and Highlight buttons
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Enhancement
Priority-Low


Sign in to add a comment
 
Reported by david.regev, Jun 05, 2008
Just like the search text and word buttons are integrated into one dynamic
object, the same should be done for the highlight button. Thus, instead of
having to position the highlight button manually in the chrome, it is
placed automatically in the same location as the search button. When word
buttons are displayed, only the highlight button appears; otherwise, only
the search button appears. That way, the highlight and search buttons are
displayed only when they are useful. Note that switching search engines
should always focus the search bar, thus allowing one to use the search
button again when re-searching using a different engine.
Comment 1 by legege, Jun 13, 2008
(No comment was entered for this change.)
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low
Comment 2 by ith...@sohu.com, Apr 01, 2009
Good point! It would be nice if the highlight button could be integrated into the
search bar following the search-go-button. And add a menuitem in the textbox context
menu to show/hide the highlight button.
Comment 3 by ith...@sohu.com, Apr 01, 2009
Adding the code below into the searchbox.xml file can work.

<xul:hbox class="searchwp-highlight-container">
  <xul:image id="searchwp-highlight-button"
            class="searchwp-highlight-button"
            anonid="searchwp-highlight-button"
            label="&button.highlight.label;"
            tooltiptext="&button.highlight.tooltiptext;"
            onclick="gSearchWP.Highlighting.toggleHighlight(event);
event.stopPropagation();"
            autocheck="false" />
</xul:hbox>
Comment 4 by ith...@sohu.com, Apr 06, 2009
(No comment was entered for this change.)
SearchWP1.jpg
2.6 KB   View   Download
SearchWP2.jpg
2.7 KB   View   Download
Sign in to add a comment

Hosted by Google Code