Title: [185329] trunk/Source/WebCore
Revision
185329
Author
[email protected]
Date
2015-06-08 14:25:55 -0700 (Mon, 08 Jun 2015)

Log Message

Explicitly dismiss correction panel when user types a new character
https://bugs.webkit.org/show_bug.cgi?id=145732
<rdar://problem/19596892>

Reviewed by Darin Adler.

Explicitly dismiss the correction panel when the user types a new character.
This patch shouldn't change any behavior we're currently relying on AppKit to do the same.

Manually ran tests in ManualTests/autocorrection.

* editing/AlternativeTextController.cpp:
(WebCore::AlternativeTextController::respondToAppliedEditing):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (185328 => 185329)


--- trunk/Source/WebCore/ChangeLog	2015-06-08 20:40:57 UTC (rev 185328)
+++ trunk/Source/WebCore/ChangeLog	2015-06-08 21:25:55 UTC (rev 185329)
@@ -1,3 +1,19 @@
+2015-06-08  Ryosuke Niwa  <[email protected]>
+
+        Explicitly dismiss correction panel when user types a new character
+        https://bugs.webkit.org/show_bug.cgi?id=145732
+        <rdar://problem/19596892>
+
+        Reviewed by Darin Adler.
+
+        Explicitly dismiss the correction panel when the user types a new character.
+        This patch shouldn't change any behavior we're currently relying on AppKit to do the same.
+
+        Manually ran tests in ManualTests/autocorrection.
+
+        * editing/AlternativeTextController.cpp:
+        (WebCore::AlternativeTextController::respondToAppliedEditing):
+
 2015-06-08  Javier Fernandez  <[email protected]>
 
         [CSS Grid Layout] Setting height on a grid item doesn't have any effect

Modified: trunk/Source/WebCore/editing/AlternativeTextController.cpp (185328 => 185329)


--- trunk/Source/WebCore/editing/AlternativeTextController.cpp	2015-06-08 20:40:57 UTC (rev 185328)
+++ trunk/Source/WebCore/editing/AlternativeTextController.cpp	2015-06-08 21:25:55 UTC (rev 185329)
@@ -484,6 +484,8 @@
 
     markPrecedingWhitespaceForDeletedAutocorrectionAfterCommand(command);
     m_originalStringForLastDeletedAutocorrection = String();
+
+    dismiss(ReasonForDismissingAlternativeTextIgnored);
 }
 
 void AlternativeTextController::respondToUnappliedEditing(EditCommandComposition* command)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to