From 2f4f70f3b02f49dc65ec2ba74adf29fbbcbd7323 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 26 May 2010 13:26:52 +0000 Subject: Patch #2951677: Text boxes should init with the caret at the beginning svn-id: r49239 --- gui/editable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/editable.cpp b/gui/editable.cpp index 723384ed44..058f08e233 100644 --- a/gui/editable.cpp +++ b/gui/editable.cpp @@ -65,7 +65,7 @@ void EditableWidget::setEditString(const String &str) { // TODO: We probably should filter the input string here, // e.g. using tryInsertChar. _editString = str; - _caretPos = _editString.size(); + _caretPos = 0; } bool EditableWidget::tryInsertChar(byte c, int pos) { -- cgit v1.2.3