Browse Source

fix: InputMethod should remove handler. (#18414)

release/11.2.6
Dong Bin 11 months ago
committed by Julien Lebosquain
parent
commit
5e52bde616
  1. 2
      src/Avalonia.Base/Input/InputMethod.cs

2
src/Avalonia.Base/Input/InputMethod.cs

@ -43,7 +43,7 @@ namespace Avalonia.Input
public static void RemoveTextInputMethodClientRequeryRequestedHandler(Interactive element, EventHandler<RoutedEventArgs> handler)
{
element.AddHandler(TextInputMethodClientRequeryRequestedEvent, handler);
element.RemoveHandler(TextInputMethodClientRequeryRequestedEvent, handler);
}
private InputMethod()

Loading…
Cancel
Save