diff options
Diffstat (limited to 'fileview.cpp')
-rw-r--r-- | fileview.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fileview.cpp b/fileview.cpp index decf8e5..31c9aca 100644 --- a/fileview.cpp +++ b/fileview.cpp @@ -71,10 +71,11 @@ void FileView::keyPressEvent(QKeyEvent *e){ emit upDir(); e->accept(); break; - /*case Qt::Key_Enter: - emit showItem(); + case Qt::Key_Enter: + case Qt::Key_Return: + emit enterPressed(currentIndex()); e->accept(); - break;*/ + break; default: QTreeView::keyPressEvent(e); } |