From 8d7d8f344cb01257c5bc59bb02a74bb89ab9bb5f Mon Sep 17 00:00:00 2001 From: Xam Date: Wed, 27 May 2026 12:22:05 +0000 Subject: [PATCH] HLE: Applets: Software keyboard: update cursor position on SetInputText fixes cursor being at 0 position even when text is present, especially annoying for handheld devices with kde virtual keyboard, which is pretty bad, with no way to move the cursor or delete text backward --- .../HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs b/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs index bbb5380ac..741221f8e 100644 --- a/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs +++ b/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs @@ -438,6 +438,7 @@ namespace Ryujinx.HLE.HOS.Applets if ((newCalc.Flags & KeyboardCalcFlags.SetInputText) != 0) { _textValue = newCalc.InputText; + _cursorBegin = _textValue.Length; updateText = true; Logger.Debug?.Print(LogClass.ServiceAm, $"Input text set to {_textValue}");