Title: [93539] trunk/Source/WebKit2
Revision
93539
Author
[email protected]
Date
2011-08-22 14:05:33 -0700 (Mon, 22 Aug 2011)

Log Message

Update the current NSTextInputContext whenever the plug-in complex text input state changes
https://bugs.webkit.org/show_bug.cgi?id=66709

Reviewed by Sam Weinig.

Call [NSTextInputContext currentInputContext] which will force AppKit to update the current input
context. Fixes a rare case when the out-of-line editing window wouldn't appear.

* UIProcess/API/mac/WKView.mm:
(-[WKView _setPluginComplexTextInputState:WebKit::pluginComplexTextInputIdentifier:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (93538 => 93539)


--- trunk/Source/WebKit2/ChangeLog	2011-08-22 21:04:33 UTC (rev 93538)
+++ trunk/Source/WebKit2/ChangeLog	2011-08-22 21:05:33 UTC (rev 93539)
@@ -1,3 +1,16 @@
+2011-08-22  Anders Carlsson  <[email protected]>
+
+        Update the current NSTextInputContext whenever the plug-in complex text input state changes
+        https://bugs.webkit.org/show_bug.cgi?id=66709
+
+        Reviewed by Sam Weinig.
+
+        Call [NSTextInputContext currentInputContext] which will force AppKit to update the current input
+        context. Fixes a rare case when the out-of-line editing window wouldn't appear.
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView _setPluginComplexTextInputState:WebKit::pluginComplexTextInputIdentifier:]):
+
 2011-08-19  Anders Carlsson  <[email protected]>
 
         Another attempt at fixing the Windows build.

Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (93538 => 93539)


--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm	2011-08-22 21:04:33 UTC (rev 93538)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm	2011-08-22 21:05:33 UTC (rev 93539)
@@ -2309,6 +2309,9 @@
         // Inform the out of line window that the input source changed.
         [[WKTextInputWindowController sharedTextInputWindowController] keyboardInputSourceChanged];
     }
+
+    // This will force the current input context to be updated to its correct value.
+    [NSTextInputContext currentInputContext];
 }
 
 - (void)_setPageHasCustomRepresentation:(BOOL)pageHasCustomRepresentation
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to