From 2152a81d111bcd25ddb0c2d12084e49782b623ca Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 23 Sep 2019 14:53:57 +0800 Subject: [PATCH] Add ability to open file via keypad Enter Closes #11260. --- src/gui/properties/propertieswidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index 02fb5a01f..cab443982 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -159,6 +159,8 @@ PropertiesWidget::PropertiesWidget(QWidget *parent) connect(deleteHotkeyWeb, &QShortcut::activated, this, &PropertiesWidget::deleteSelectedUrlSeeds); const auto *openHotkeyFile = new QShortcut(Qt::Key_Return, m_ui->filesList, nullptr, nullptr, Qt::WidgetShortcut); connect(openHotkeyFile, &QShortcut::activated, this, &PropertiesWidget::openSelectedFile); + const auto *openFileHotkeyEnter = new QShortcut(Qt::Key_Enter, m_ui->filesList, nullptr, nullptr, Qt::WidgetShortcut); + connect(openFileHotkeyEnter, &QShortcut::activated, this, &PropertiesWidget::openSelectedFile); connect(m_ui->listWebSeeds, &QListWidget::doubleClicked, this, &PropertiesWidget::editWebSeed);