Add alternative shortcut CTRL+E for CTRL+F

PR #19190.
This commit is contained in:
Luka Čelebić
2023-06-20 10:52:09 +02:00
committed by GitHub
parent f213f81727
commit 379b0dbe40
2 changed files with 4 additions and 0 deletions

View File

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