Browse Source
Check if event was handled before in OnTextInput
pull/1510/head
temporaryuser0
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
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) |
|
|
|
|