Correct Right Arrow key processing in Modules list

This commit is contained in:
Yuriy Skalko 2020-08-13 23:43:03 +03:00 committed by Juergen Spitzmueller
parent e1dd91e10e
commit 4c3139314b

View File

@ -418,6 +418,10 @@ bool GuiSelectionManager::eventFilter(QObject * obj, QEvent * event)
return true;
}
else if (keyPressed == Qt::Key_Right) {
QModelIndex const idx = availableLV->currentIndex();
if (availableLV->model()->hasChildren(idx)) { // skip for headers
return false;
}
focusAndHighlight(selectedLV);
event->accept();
return true;