Skip to content

Commit

Permalink
fix: "Enter" closes quick find dialog(#636) (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
nowhszh committed Aug 8, 2023
1 parent 8a5eff0 commit 4b7f4c5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ui/src/quickfindwidget.cpp
Expand Up @@ -181,14 +181,10 @@ void QuickFindWidget::doSearchBackward()
Q_EMIT searchBackward();
}

// Close and search when the user presses Return
// Same as user clicks backward arrow
void QuickFindWidget::returnHandler()
{
Q_EMIT patternConfirmed( editQuickFind_->text(), isIgnoreCase(), isRegexSearch() );
// Close the widget
userRequested_ = false;
this->hide();
Q_EMIT close();
doSearchForward();
}

// Close and reset flag when the user clicks 'close'
Expand Down

0 comments on commit 4b7f4c5

Please sign in to comment.