mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Fixed #583: Make sure that IME input is forwarded
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user