┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeonardo Finetti <[email protected]>2008-12-26 11:34:09 +0000
committerLeonardo Finetti <[email protected]>2008-12-26 11:34:09 +0000
commitefbce1059cfab4629d5436ce27f9130b59ac4602 (patch)
treeca6f2b457f389b191240a0541440ad668df6b255 /src
parentbba48e459dc512cfdc457f501ef45e4d79acd3ac (diff)
Patch by Drew Fisher: enable keypad enter in dolphin.
Tested by me and approved by Peter Penz. BUG: 178735 svn path=/trunk/KDE/kdebase/apps/; revision=901630
Diffstat (limited to 'src')
-rw-r--r--src/dolphincontroller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphincontroller.cpp b/src/dolphincontroller.cpp
index 2f267560a..46cb74520 100644
--- a/src/dolphincontroller.cpp
+++ b/src/dolphincontroller.cpp
@@ -129,7 +129,8 @@ void DolphinController::handleKeyPressEvent(QKeyEvent* event)
const QItemSelectionModel* selModel = m_itemView->selectionModel();
const QModelIndex currentIndex = selModel->currentIndex();
const bool trigger = currentIndex.isValid()
- && (event->key() == Qt::Key_Return)
+ && ((event->key() == Qt::Key_Return)
+ || (event->key() == Qt::Key_Enter))
&& (selModel->selectedIndexes().count() > 0);
if (trigger) {
const QModelIndexList indexList = selModel->selectedIndexes();