Changeset 247280 in webkit
- Timestamp:
- Jul 9, 2019 2:45:05 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r247277 r247280 1 2019-07-09 Megan Gardner <megan_gardner@apple.com> 2 3 Don't strip out spaces for personalized Autocorrections 4 https://bugs.webkit.org/show_bug.cgi?id=199476 5 <rdar://problem/50782015> 6 7 Reviewed by Dean Jackson. 8 9 When inserting 'autocorrections' that are really predictive 10 text suggestions based on personal data, we would remove the space 11 before the suggestion, resulting in incorrect input. 12 To fix, do not remove a space when the autocorrected text and the text it is 13 replacing do not have any length. 14 15 * WebProcess/WebPage/ios/WebPageIOS.mm: 16 (WebKit::WebPage::applyAutocorrectionInternal): 17 1 18 2019-07-09 Truitt Savell <tsavell@apple.com> 2 19 -
trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
r247223 r247280 2369 2369 if (correction.length()) 2370 2370 frame.editor().insertText(correction, 0, originalText.isEmpty() ? TextEventInputKeyboard : TextEventInputAutocompletion); 2371 else 2371 else if (originalText.length()) 2372 2372 frame.editor().deleteWithDirection(DirectionBackward, CharacterGranularity, false, true); 2373 2373 return true;
Note: See TracChangeset
for help on using the changeset viewer.