mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
Patch #2951677: Text boxes should init with the caret at the beginning
svn-id: r49239
This commit is contained in:
parent
1a01caece7
commit
2f4f70f3b0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user