Bug 233275 Double-clicking an empty area of the suggested word list incorrectly replaces words r=glazou sr=mscott

This commit is contained in:
neil%parkwaycc.co.uk 2004-04-15 20:32:06 +00:00
Родитель 02b1c0215e
Коммит f03e536019
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -365,9 +365,11 @@ function IgnoreAll()
NextWord();
}
function Replace()
function Replace(newWord)
{
var newWord = gDialog.ReplaceWordInput.value;
if (!newWord)
return;
if (gMisspelledWord && gMisspelledWord != newWord)
{
var editor = GetCurrentEditor();

Просмотреть файл

@ -76,13 +76,15 @@
<rows>
<row flex="1">
<!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
<listbox rows="6" id="SuggestedList" onselect="SelectSuggestedWord()" ondblclick="Replace();"/>
<listbox rows="6" id="SuggestedList" onselect="SelectSuggestedWord()"
ondblclick="if (gAllowSelectWord) Replace(event.target.getAttribute('label'));"/>
<vbox>
<grid flex="1">
<columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
<rows>
<row>
<button id="Replace" oncommand="Replace();" label="&replaceButton.label;"
<button id="Replace" label="&replaceButton.label;"
oncommand="Replace(gDialog.ReplaceWordInput.value);"
accesskey="&replaceButton.accessKey;"/>
<button id="Ignore" oncommand="Ignore();" label="&ignoreButton.label;"
accesskey="&ignoreButton.accessKey;"/>