diff options
Diffstat (limited to 'gui/ListWidget.cpp')
-rw-r--r-- | gui/ListWidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp index 1f607bfbfc..25c11b2065 100644 --- a/gui/ListWidget.cpp +++ b/gui/ListWidget.cpp @@ -125,7 +125,8 @@ bool ListWidget::handleKeyDown(char key, int modifiers) case '\n': // enter case '\r': if (_selectedItem >= 0) { - if ((_currentKeyDown != '\n' && _currentKeyDown != '\r')) { // override continuous enter keydown + // override continuous enter keydown + if (_editable && (_currentKeyDown != '\n' && _currentKeyDown != '\r')) { _editMode = true; dirty = true; _backupString = _list[_selectedItem]; |