Browse Source
Merge pull request #1453 from AvaloniaUI/fix/set-handled-in-gotfocus
set e.Handled in textbox OnGotFocus.
pull/1451/merge
Steven Kirk
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
src/Avalonia.Controls/TextBox.cs
|
|
|
@ -256,6 +256,8 @@ namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
_presenter?.ShowCaret(); |
|
|
|
} |
|
|
|
|
|
|
|
e.Handled = true; |
|
|
|
} |
|
|
|
|
|
|
|
protected override void OnLostFocus(RoutedEventArgs e) |
|
|
|
@ -269,6 +271,7 @@ namespace Avalonia.Controls |
|
|
|
protected override void OnTextInput(TextInputEventArgs e) |
|
|
|
{ |
|
|
|
HandleTextInput(e.Text); |
|
|
|
e.Handled = true; |
|
|
|
} |
|
|
|
|
|
|
|
private void HandleTextInput(string input) |
|
|
|
|