From a00007803fe3b38d90ce5cbee1782066624a1745 Mon Sep 17 00:00:00 2001 From: iProgramInCpp Date: Mon, 31 Jul 2023 11:42:11 +0300 Subject: [PATCH] * When a text box is focused, move the write head at the end. --- source/GUI/TextInputBox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/GUI/TextInputBox.cpp b/source/GUI/TextInputBox.cpp index 7b12500..7f6fcc2 100644 --- a/source/GUI/TextInputBox.cpp +++ b/source/GUI/TextInputBox.cpp @@ -148,6 +148,7 @@ void TextInputBox::setFocused(bool b) { m_lastFlashed = getTimeMs(); m_bCursorOn = true; + m_insertHead = int(m_text.size()); } }