From 3ed298a73dcc1c16ef6438026647de254b0fc891 Mon Sep 17 00:00:00 2001 From: Santiago Gil Date: Sat, 2 Jan 2016 19:48:00 -0300 Subject: [PATCH] Enable Enter key shortcut in file view --- src/widgets/fileview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/fileview.cpp b/src/widgets/fileview.cpp index 0bd6688ea..686aac2c6 100644 --- a/src/widgets/fileview.cpp +++ b/src/widgets/fileview.cpp @@ -227,7 +227,10 @@ void FileView::keyPressEvent(QKeyEvent* e) { case Qt::Key_Backspace: ui_->up->click(); break; + case Qt::Key_Enter: + case Qt::Key_Return: + ItemDoubleClick(ui_->list->currentIndex()); + break; } - QWidget::keyPressEvent(e); }