Bug 1503286 - fix double-click in list of suggested words after bug 1475817. r=jorgk,aceman a=jorgk
authorAlice White <alice0775@gmail.com>
Wed, 31 Oct 2018 23:07:58 +0100
changeset 33464 593d228719d752e37377d322cced522032d3582b
parent 33463 8338dbce84a93ad65edec1b462b9cd83d7018bf3
child 33465 014f012b2825b1ee1e7989cef541d94256cadff7
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersjorgk, aceman, jorgk
bugs1503286, 1475817
Bug 1503286 - fix double-click in list of suggested words after bug 1475817. r=jorgk,aceman a=jorgk
editor/ui/dialogs/content/EdSpellCheck.xul
--- a/editor/ui/dialogs/content/EdSpellCheck.xul
+++ b/editor/ui/dialogs/content/EdSpellCheck.xul
@@ -56,17 +56,17 @@
   <grid flex="1">
     <columns><column flex="1"/><column/></columns>
     <rows>
       <row flex="1">
         <!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
         <richlistbox id="SuggestedList"
                      class="theme-listbox"
                      onselect="SelectSuggestedWord()"
-                     ondblclick="if (gAllowSelectWord) Replace(event.target.label);"/>
+                     ondblclick="if (gAllowSelectWord) Replace(event.target.value);"/>
         <vbox>
           <grid>
             <columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
             <rows>
               <row>
                 <button id="Replace" label="&replaceButton.label;"
                         oncommand="Replace(gDialog.ReplaceWordInput.value);"
                         accesskey="&replaceButton.accessKey;"/>