Bug 317419 Use new clickSelectsAll property in quick search fields r=Neil
authorNatch <highmind63@gmail.com>
Fri, 26 Sep 2008 21:22:43 +0100
changeset 442 4e3fbb4603b562f5d5d827960129867d537ad523
parent 441 b865155974be935368c4d2eb42bb7c3be4ce06fc
child 443 d297432d8383690a2dfddde72b2a90a57d734e15
push idunknown
push userunknown
push dateunknown
reviewersNeil
bugs317419
Bug 317419 Use new clickSelectsAll property in quick search fields r=Neil
mailnews/addrbook/resources/content/abSelectAddressesDialog.xul
mailnews/addrbook/resources/content/addressbook-panel.xul
mailnews/addrbook/resources/content/addressbook.xul
mailnews/base/resources/content/mailWindowOverlay.xul
mailnews/base/resources/content/subscribe.xul
suite/common/bookmarks/bm-panel.xul
suite/common/bookmarks/bookmarksManager.xul
suite/common/pref/pref-applications.xul
--- a/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul
+++ b/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul
@@ -77,17 +77,17 @@
     <hbox id="topBox" align="center">
       <label value="&lookIn.label;" accesskey="&lookIn.accesskey;" control="addressbookList"/>
       <menulist id="addressbookList" 
                 oncommand="DirPaneSelectionChangeMenulist(); document.commandDispatcher.updateCommands('addrbook-select');">
         <menupopup id="addressbookList-menupopup" class="addrbooksPopup"/>
       </menulist>  
       <label value="&for.label;" accesskey="&for.accesskey;" control="searchInput"/>
       <textbox id="searchInput" flex="1" type="search"
-               oncommand="onEnterInSearchBar();"/>  
+               oncommand="onEnterInSearchBar();" clickSelectsAll="true"/>
     </hbox>
     
     <hbox flex="1">    
 
        <vbox id="resultsBox" flex="4">
          <tree id="abResultsTree" flex="1" persist="height" />
        </vbox>
         
--- a/mailnews/addrbook/resources/content/addressbook-panel.xul
+++ b/mailnews/addrbook/resources/content/addressbook-panel.xul
@@ -95,17 +95,17 @@
                 persist="value">
         <menupopup id="addressbookList-menupopup" class="addrbooksPopup"/>
       </menulist>
     </hbox>
 	<hbox align="center">
 	  <label value="&for.label;" id="forLabel" control="searchInput"/> 
 	  <textbox id="searchInput" flex="1" type="search"
                aria-labelledby="lookInLabel addressbookList forLabel"
-               oncommand="onEnterInSearchBar();"/>
+               oncommand="onEnterInSearchBar();" clickSelectsAll="true"/>
 	</hbox>
 
     <tree id="abResultsTree" flex="1" context="composeMail" onclick="AbResultsPaneOnClick(event);" class="plain"
           sortCol="GeneratedName" persist="sortCol">
   <treecols>
     <!-- these column ids must match up to the mork column names, see nsIAddrDatabase.idl -->
     <treecol id="GeneratedName" class="sortDirectionIndicator" 
           persist="hidden ordinal width sortDirection" flex="1" label="&GeneratedName.label;" primary="true"/>
--- a/mailnews/addrbook/resources/content/addressbook.xul
+++ b/mailnews/addrbook/resources/content/addressbook.xul
@@ -428,17 +428,17 @@
       <hbox id="searchBox" persist="collapsed" align="center">
         <label id="searchCriteria" value="&SearchNameOrEmail.label;"
                accesskey="&SearchNameOrEmail.accesskey;"
                control="searchInput"/>
         <textbox id="searchInput" flex="1" type="search"
                 oninput="SearchInputChanged();"
                 oncommand="onEnterInSearchBar();"
                 onkeypress="if (event.keyCode == KeyEvent.DOM_VK_RETURN) this.select();"
-                onfocus="this.select();" onclick="this.select();"/>
+                clickSelectsAll="true"/>
         <button id="advancedButton" label="&advancedButton.label;" 
                 accesskey="&advancedButton.accesskey;"
                 tooltiptext="&advancedButton.tooltip;" 
                 oncommand="onAdvancedAbSearch();"/>
       </hbox>
 
       <!-- results pane -->
       <tree id="abResultsTree" context="abResultsTreeContext" flex="1" />
--- a/mailnews/base/resources/content/mailWindowOverlay.xul
+++ b/mailnews/base/resources/content/mailWindowOverlay.xul
@@ -2250,17 +2250,19 @@
       <menupopup id="locationPopup" height="400"
                  oncommand="OnLocationTreeSelect(this);"/>
     </menulist>
   </hbox>
 
 <hbox id="searchBox" align="center" flex="1">
   <label id="searchCriteria" value="&SearchSubjectOrFrom.label;" control="searchInput"
          accesskey="&SearchSubjectOrFrom.accesskey;"/>
-  <textbox id="searchInput" flex="1" onfocus="this.select();" onclick="this.select();" onkeypress="if (event.keyCode == KeyEvent.DOM_VK_RETURN) this.select();" oncommand="onEnterInSearchBar();" type="search"/>
+  <textbox id="searchInput" flex="1" type="search" clickSelectsAll="true"
+           onkeypress="if (event.keyCode == KeyEvent.DOM_VK_RETURN) this.select();"
+           oncommand="onEnterInSearchBar();"/>
   <button id="advancedButton" label="&advancedButton.label;" tooltiptext="&advancedButton.tooltip;" oncommand="onAdvancedSearch();"
           accesskey="&advancedButton.accesskey;"/>
 </hbox>
 </toolbar>
 
 <!-- The msgNotificationBar appears on top of the message and displays
      information like: junk, contains remote images, or is a suspected phishing
      URL.
--- a/mailnews/base/resources/content/subscribe.xul
+++ b/mailnews/base/resources/content/subscribe.xul
@@ -88,17 +88,18 @@
                     </menupopup>
                   </rule>
                 </template>
               </menulist>
             </row>
             <row align="center">
               <label value="&namefield.label;" accesskey="&namefield.accesskey;" 
                      id="namefieldlabel" control="namefield"/>
-              <textbox id="namefield" flex="1" type="search" oncommand="Search();"/>
+              <textbox id="namefield" flex="1" type="search" oncommand="Search();"
+                       clickSelectsAll="true"/>
             </row>
           </rows>
          </grid>
          <spacer/>
        </row>
        <row>
          <separator class="thin"/>
          <spacer/>
--- a/suite/common/bookmarks/bm-panel.xul
+++ b/suite/common/bookmarks/bm-panel.xul
@@ -93,17 +93,17 @@
     <spacer flex="1"/>
     <toolbarseparator/>
     <toolbarbutton id="btnFindBookmarks" label="&command.findBookmarks.label;"
             oncommand="BookmarksCommand.findBookmark();"/>
   </hbox>
 
   <hbox id="search-bar" class="toolbar" align="center">
     <label value="&search.label;" accesskey="&search.accesskey;" control="search-box"/>
-    <textbox id="search-box" flex="1" type="search"
+    <textbox id="search-box" flex="1" type="search" clickSelectsAll="true"
              oncommand="document.getElementById('bookmarks-view').searchBookmarks(this.value)"/>
   </hbox>
   
   <bookmarks-tree id="bookmarks-view" type="single-column" flex="1"
                   onfocus="this.tree.focus();"
                   onkeypress="if (event.keyCode == 13) this.openItemKey(event);"
                   ondraggesture="if (event.originalTarget.localName == 'treechildren') nsDragAndDrop.startDrag(event, this.DNDObserver);"
                   onclick="this.openItemClick(event, 1);"/>
--- a/suite/common/bookmarks/bookmarksManager.xul
+++ b/suite/common/bookmarks/bookmarksManager.xul
@@ -239,17 +239,17 @@
       <toolbarbutton id="delete" label="&command.delete.label;"
                      accesskey="&button.delete.accesskey;"
                      command="cmd_bm_delete"/>
     </toolbar>
 
     <toolbar id="bookmarks-search" align="center"
              grippytooltiptext="&bookmarksSearch.tooltip;">
       <label value="&search.label;" accesskey="&search.accesskey;" control="search-box"/>
-      <textbox id="search-box" flex="1" type="search"
+      <textbox id="search-box" flex="1" type="search" clickSelectsAll="true"
                oncommand="document.getElementById('bookmarks-view').searchBookmarks(this.value)"/>
     </toolbar>
   </toolbox>
 
   <bookmarks-tree id="bookmarks-view" flex="1"/>
 
 </window>
 
--- a/suite/common/pref/pref-applications.xul
+++ b/suite/common/pref/pref-applications.xul
@@ -99,17 +99,17 @@
     </preferences>
 
     <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
     <stringbundle id="bundlePrefApplications"
                   src="chrome://communicator/locale/pref/pref-applications.properties"/>
 
     <hbox align="center">
       <label accesskey="&filter.accesskey;" control="filter">&filter.label;</label>
-      <textbox id="filter" flex="1" type="search"
+      <textbox id="filter" flex="1" type="search" clickSelectsAll="true"
                oncommand="gApplicationsPane._rebuildView();"/>
     </hbox>
 
     <separator class="thin"/>
 
     <listbox id="handlersView" persist="lastSelectedType" flex="1"
              preference="pref.downloads.disable_button.edit_actions">
       <listcols>