UNCONFIRMED 14537
-[WebHTMLView insertText:] with NSTextInputReplacementRangeAttributeName changes the selection
https://bugs.webkit.org/show_bug.cgi?id=14537
Summary -[WebHTMLView insertText:] with NSTextInputReplacementRangeAttributeName chan...
Evan Gross
Reported 2007-07-05 17:56:38 PDT
The changes made in Bug 13664 to support NSTextInputReplacementRangeAttributeName have a side-effect in that the selection is changed when insertText is called (not sure about setMarkedText). It's easy to see the sort of problem this causes using Spell Catcher X, when it corrects a spelling error prior to the location of the insertion point: 1. Activate Spell Catcher's input method, select "Auto-Show Suggestions". By default, the Suggest Spelling window is used - you can check this in Spell Catcher Preferences, Interactive pane, Spelling tab. 2. Make sure that the Spell Catcher Preference in Interactive, Typing tab to "Make replacements directly..." is selected. 3. Type an error, space, and the Suggest Spelling window should open. 4. Type another error (or two). 5. From the pop-up menu to the left of the Use: editable text field, choose an error other than the current one. 6. Choose replacement from the list. Observe: The insertion point is now after the replaced word, and, well, Spell Catcher is now out-of-sync with the errors it's tracking and making further corrections is no longer possible.
Attachments
Note You need to log in before you can comment on or make changes to this bug.