[Webkit-unassigned] [Bug 14537] New: -[WebHTMLView insertText:] with NSTextInputReplacementRangeAttributeName changes the selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 5 17:56:38 PDT 2007


           Summary: -[WebHTMLView insertText:] with
                    NSTextInputReplacementRangeAttributeName changes the
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: evan at rainmakerinc.com

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.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list