Patch #2951677: Text boxes should init with the caret at the beginning

svn-id: r49239
This commit is contained in:
Eugene Sandulenko 2010-05-26 13:26:52 +00:00
parent 1a01caece7
commit 2f4f70f3b0

View File

@ -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) {