From b98673f8c59093af319978d45640db20b420e9be Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 27 Feb 2026 14:18:40 +0100 Subject: [PATCH] fix: set input field insertion point to end after autocomplete --- src/EchoHub.Client/UI/MainWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/EchoHub.Client/UI/MainWindow.cs b/src/EchoHub.Client/UI/MainWindow.cs index f46e5cc..77ebece 100644 --- a/src/EchoHub.Client/UI/MainWindow.cs +++ b/src/EchoHub.Client/UI/MainWindow.cs @@ -572,6 +572,9 @@ public sealed partial class MainWindow : Runnable if (prefix.Length > text.Length) _inputField.Text = prefix; } + + // Move cursor to end after autocomplete + _inputField.InsertionPoint = new System.Drawing.Point(_inputField.Text?.Length ?? 0, 0); } private void OnChatViewportChanged()