Browse Source

Check if event was handled before in OnTextInput

pull/1510/head
temporaryuser0 8 years ago
committed by GitHub
parent
commit
ad675ded5e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/Avalonia.Controls/TextBox.cs

7
src/Avalonia.Controls/TextBox.cs

@ -275,8 +275,11 @@ namespace Avalonia.Controls
protected override void OnTextInput(TextInputEventArgs e)
{
HandleTextInput(e.Text);
e.Handled = true;
if (!e.Handled)
{
HandleTextInput(e.Text);
e.Handled = true;
}
}
private void HandleTextInput(string input)

Loading…
Cancel
Save