-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spell checking indicator shows when an inline prediction candidate fo…
…r a proper noun is being shown https://bugs.webkit.org/show_bug.cgi?id=258643 rdar://110196591 Reviewed by Wenson Hsieh. Use the `m_isHandlingAcceptedCandidate` flag to indicate when an inline prediction candidate is being offered. Setting text via `setMarkedText` eventually gets into `Editor::markAllMisspellingsAndBadGrammarInRanges`, so exit early in that method if the flag is set so that spelling and grammer checking does not get erroneously applied. * Source/WebCore/editing/Editor.cpp: (WebCore::Editor::setComposition): (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): * Tools/TestWebKitAPI/Tests/mac/WKWebViewMacEditingTests.mm: (TEST): Canonical link: https://commits.webkit.org/265725@main
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters