Bug 1503286 - fix double-click in list of suggested words after bug 1475817. r=jorgk,aceman
authorAlice White <alice0775@gmail.com>
Wed, 31 Oct 2018 23:07:58 +0100
changeset 33631 22fb120a634f0281b496b650d21da0d05bded5d4
parent 33630 0216225d5fbaba735924a201d763f34a20c466c4
child 33632 89c98293e4af398d5e642aaedec9f6f08e2e8a9c
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersjorgk, aceman
bugs1503286, 1475817
Bug 1503286 - fix double-click in list of suggested words after bug 1475817. r=jorgk,aceman
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;"/>