diff options
author | Max Horn | 2011-05-17 12:11:51 +0200 |
---|---|---|
committer | Max Horn | 2011-05-17 12:23:55 +0200 |
commit | a3fe84cfe67a3eb4ae4750923f712bc9216a2f3f (patch) | |
tree | cde886689a3710615dc86e53765851617e480fb8 | |
parent | d1652922340abbc852ab1c52125cf1a4c559a231 (diff) | |
download | scummvm-rg350-a3fe84cfe67a3eb4ae4750923f712bc9216a2f3f.tar.gz scummvm-rg350-a3fe84cfe67a3eb4ae4750923f712bc9216a2f3f.tar.bz2 scummvm-rg350-a3fe84cfe67a3eb4ae4750923f712bc9216a2f3f.zip |
GUI: For a list entry in edit mode, move caret to end
-rw-r--r-- | gui/widgets/list.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index 7e7275890e..065b240471 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -587,6 +587,7 @@ void ListWidget::startEditMode() { if (_editable && !_editMode && _selectedItem >= 0) { _editMode = true; setEditString(_list[_selectedItem]); + _caretPos = _editString.size(); // Force caret to the *end* of the selection. if (_listColors.empty()) { _editColor = ThemeEngine::kFontColorNormal; } else { |