Browse Source

Update implementation of SetLanguageAndWindow method (#18816)

- In `Imm32InputMethod.cs`, removed the premature assignment to `_langId` within the `SetLanguageAndWindow` method to ensure subsequent logic correctly recognizes langId changes and properly updates the IME state.
- Fixed an issue where input controls initialized with `InputMethod.IsInputMethodEnable=false` could still use IME in their initial state.
release/11.3.1
zhijun zhou 1 year ago
committed by Julien Lebosquain
parent
commit
845fea711f
  1. 3
      src/Windows/Avalonia.Win32/Input/Imm32InputMethod.cs

3
src/Windows/Avalonia.Win32/Input/Imm32InputMethod.cs

@ -84,9 +84,6 @@ namespace Avalonia.Win32.Input
public void SetLanguageAndWindow(WindowImpl parent, IntPtr hwnd, IntPtr HKL)
{
Hwnd = hwnd;
_parent = parent;
_langId = PRIMARYLANGID(LGID(HKL));
_parent = parent;
var langId = PRIMARYLANGID(LGID(HKL));

Loading…
Cancel
Save