Skip to content

Commit

Permalink
Github Issue #129: When the refocus goes to the QLineEdit by pressing…
Browse files Browse the repository at this point in the history
… the "BackSpace" key, all texts are selected
  • Loading branch information
AngryFender committed Feb 11, 2024
1 parent 06ec20b commit 7e189d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,10 @@ void ViewsHandler::textSearchResultPositionSelected(const QModelIndex &index)
void ViewsHandler::sendFocusToSearchHandler(QWidget *view)
{
if(view == viewTextSearchTree){
this->viewTextSearchEdit->selectAll();
this->viewTextSearchEdit->setFocus();
}else if(view == viewTree){
this->viewSearch->selectAll();
this->viewSearch->setFocus();
}else if(view == viewTextSearchEdit){

Expand Down

0 comments on commit 7e189d2

Please sign in to comment.