From 379b0dbe40a75e9d7f5ec4f638dbadbb78cef206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20=C4=8Celebi=C4=87?= Date: Tue, 20 Jun 2023 10:52:09 +0200 Subject: [PATCH] Add alternative shortcut CTRL+E for CTRL+F PR #19190. --- src/gui/mainwindow.cpp | 2 ++ src/gui/search/searchwidget.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index f94b80997..c5df751db 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -857,6 +857,8 @@ void MainWindow::createKeyboardShortcuts() connect(switchExecutionLogShortcut, &QShortcut::activated, this, &MainWindow::displayExecutionLogTab); const auto *switchSearchFilterShortcut = new QShortcut(QKeySequence::Find, m_transferListWidget); connect(switchSearchFilterShortcut, &QShortcut::activated, this, &MainWindow::focusSearchFilter); + const auto *switchSearchFilterShortcutAlternative = new QShortcut((Qt::CTRL | Qt::Key_E), m_transferListWidget); + connect(switchSearchFilterShortcutAlternative, &QShortcut::activated, this, &MainWindow::focusSearchFilter); m_ui->actionDocumentation->setShortcut(QKeySequence::HelpContents); m_ui->actionOptions->setShortcut(Qt::ALT | Qt::Key_O); diff --git a/src/gui/search/searchwidget.cpp b/src/gui/search/searchwidget.cpp index c00764796..cb08799ef 100644 --- a/src/gui/search/searchwidget.cpp +++ b/src/gui/search/searchwidget.cpp @@ -145,6 +145,8 @@ SearchWidget::SearchWidget(IGUIApplication *app, MainWindow *mainWindow) const auto *focusSearchHotkey = new QShortcut(QKeySequence::Find, this); connect(focusSearchHotkey, &QShortcut::activated, this, &SearchWidget::toggleFocusBetweenLineEdits); + const auto *focusSearchHotkeyAlternative = new QShortcut((Qt::CTRL | Qt::Key_E), this); + connect(focusSearchHotkeyAlternative, &QShortcut::activated, this, &SearchWidget::toggleFocusBetweenLineEdits); } bool SearchWidget::eventFilter(QObject *object, QEvent *event)