Skip to content

Commit

Permalink
feat(browser): Implement Ctrl+Enter to toggle "Highlight All" search …
Browse files Browse the repository at this point in the history
…option

Fixes zealdocs#1467
  • Loading branch information
ratijas committed Mar 21, 2023
1 parent a617ae5 commit 280b24f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/browser/searchtoolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ bool SearchToolBar::eventFilter(QObject *object, QEvent *event)
switch (keyEvent->key()) {
case Qt::Key_Enter:
case Qt::Key_Return:
if (keyEvent->modifiers().testFlag(Qt::ShiftModifier)) {
if (keyEvent->modifiers().testFlag(Qt::ControlModifier)) {
m_highlightAllButton->toggle();
} else if (keyEvent->modifiers().testFlag(Qt::ShiftModifier)) {
findPrevious();
} else {
findNext();
Expand Down

0 comments on commit 280b24f

Please sign in to comment.