Browse Source
Do not propagate SurroundingTextChanged if input connection is in update (#18030)
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
pull/18076/head
kerams
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Android/Avalonia.Android/Platform/Input/AndroidInputMethod.cs
|
|
|
@ -122,7 +122,7 @@ namespace Avalonia.Android.Platform.Input |
|
|
|
|
|
|
|
private void _client_SurroundingTextChanged(object? sender, EventArgs e) |
|
|
|
{ |
|
|
|
if (_inputConnection is null || _inputConnection.IsInBatchEdit) |
|
|
|
if (_inputConnection is null || _inputConnection.IsInBatchEdit || _inputConnection.IsInUpdate) |
|
|
|
return; |
|
|
|
OnSurroundingTextChanged(); |
|
|
|
} |
|
|
|
|