Add ability to open file via keypad Enter

Closes #11260.
This commit is contained in:
Chocobo1 2019-09-23 14:53:57 +08:00
parent eebb2186c7
commit 2152a81d11
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -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);