const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers();
if (modifier & Qt::ControlModifier) {
m_view->requestActivation(this);
+ if (!selModel->hasSelection()) {
+ selModel->setCurrentIndex(index, QItemSelectionModel::Select);
+ }
selModel->select(index, QItemSelectionModel::Toggle);
swallowMousePressEvent = true;
} else if (item->isDir()) {
m_view->requestActivation(this);
}
- // TODO: check behavior with ShiftModifier
- //if (modifier & Qt::ShiftModifier)
-
// TODO: is the assumption OK that Qt::RightButton always represents the context menu button?
if (event->button() == Qt::RightButton) {
swallowMousePressEvent = true;