From 5ea3027f98c7ccf5456c31c1d51afa14f1c4ab82 Mon Sep 17 00:00:00 2001 From: Benedikt Stebner Date: Mon, 6 Mar 2023 17:14:13 +0100 Subject: [PATCH] Do the same for Chinese IME --- src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs b/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs index 0ffbed0ee7..2a40eb9f5b 100644 --- a/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs +++ b/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs @@ -739,14 +739,7 @@ namespace Avalonia.Win32 } case GCS.GCS_RESULTREADCLAUSE | GCS.GCS_RESULTSTR | GCS.GCS_RESULTCLAUSE: { - if (string.IsNullOrEmpty(Imm32InputMethod.Current.Composition)) - { - var c = (char)ToInt32(wParam); - - Imm32InputMethod.Current.Composition = new string(c, 1); - - _ignoreWmChar = true; - } + // Chinese IME sends WM_CHAR after composition has finished. break; } case GCS.GCS_RESULTREADSTR | GCS.GCS_RESULTREADCLAUSE | GCS.GCS_RESULTSTR | GCS.GCS_RESULTCLAUSE: