From a2eb8942882e857ddd81b753e175b3ba3b4fbcce Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Fri, 23 Jun 2023 11:43:53 +0000 Subject: [PATCH] android - dispatch key event for delete --- .../Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs b/src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs index e597c26753..eeb709b22b 100644 --- a/src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs +++ b/src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs @@ -567,7 +567,7 @@ namespace Avalonia.Android.Platform.SkiaPlatform InputMethod.Client.Selection = new TextSelection(selection.Start - beforeLength, selection.Start + afterLength); - Toplevel.TextInput(""); + InputMethod.View.DispatchKeyEvent(new KeyEvent(KeyEventActions.Down, Keycode.ForwardDel)); EditableWrapper.IgnoreChange = true; }