Fixed #583: Make sure that IME input is forwarded

This commit is contained in:
ralphmayr
2015-02-02 12:56:13 +01:00
parent 30120ee619
commit 77b433bb69
+9 -1
View File
@@ -610,7 +610,6 @@ namespace CefSharp.Wpf
case WM.SYSKEYUP:
case WM.KEYDOWN:
case WM.KEYUP:
case WM.CHAR:
case WM.IME_CHAR:
{
if (!IsKeyboardFocused)
@@ -913,6 +912,15 @@ namespace CefSharp.Wpf
}
}
protected override void OnPreviewTextInput(TextCompositionEventArgs e)
{
for (int i = 0; i < e.Text.Length; i++)
{
managedCefBrowserAdapter.SendKeyEvent((int)WM.CHAR, (int)e.Text[i], (IntPtr) 0);
}
base.OnPreviewTextInput(e);
}
protected override void OnMouseMove(MouseEventArgs e)
{
var point = GetPixelPosition(e);