+ return true;
+ case MultiSelection:
+ if (controlPressed) {
+ m_selectionManager->setSelected(m_pressedIndex, 1, KItemListSelectionManager::Toggle);
+ m_selectionManager->beginAnchoredSelection(m_pressedIndex);
+ }
+ else {
+ if (shiftPressed && m_selectionManager->isAnchoredSelectionActive()) {
+ // The anchored selection is continued automatically by calling
+ // m_selectionManager->setCurrentItem(m_pressedIndex), see above -> nothing more to do here
+ return true;
+ }
+
+ // Select the pressed item and start a new anchored selection
+ m_selectionManager->setSelected(m_pressedIndex, 1, KItemListSelectionManager::Select);
+ m_selectionManager->beginAnchoredSelection(m_pressedIndex);
+ }