From d550ab97c400be76f915aea921a0ac2b11a7602a Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Fri, 12 May 2000 22:11:06 +0000 Subject: [PATCH] Fixing spellcheck bug 34356 git-svn-id: svn://10.0.0.236/trunk@69462 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/dialogs/content/EdSpellCheck.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mozilla/editor/ui/dialogs/content/EdSpellCheck.js b/mozilla/editor/ui/dialogs/content/EdSpellCheck.js index 3f7ebfc44ab..2f196a5a8b1 100644 --- a/mozilla/editor/ui/dialogs/content/EdSpellCheck.js +++ b/mozilla/editor/ui/dialogs/content/EdSpellCheck.js @@ -228,15 +228,21 @@ function SelectSuggestedWord() if (allowSelectWord) { var selValue = GetSelectedTreelistValue(dialog.SuggestedList); -dump(selValue+"=Selected word in suggested list\n"); dialog.ReplaceWordInput.value = selValue; } } function ChangeReplaceWord() { + // Calling this triggers SelectSuggestedWord(), + // so temporarily suppress the effect of that + var saveAllow = allowSelectWord; + allowSelectWord = false; + // Unselect the word in the suggested list when user edits the replacement word dialog.SuggestedList.clearItemSelection(); + + allowSelectWord = saveAllow; } function Ignore()