Browse Source

fix: InputMethod should remove handler. (#18414)

pull/18416/head
Dong Bin 11 months ago
committed by GitHub
parent
commit
c416fc716d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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) public static void RemoveTextInputMethodClientRequeryRequestedHandler(Interactive element, EventHandler<RoutedEventArgs> handler)
{ {
element.AddHandler(TextInputMethodClientRequeryRequestedEvent, handler); element.RemoveHandler(TextInputMethodClientRequeryRequestedEvent, handler);
} }
private InputMethod() private InputMethod()

Loading…
Cancel
Save