Game List: Make Ctrl+f Focus On The Search Bar

This commit is contained in:
Eladash 2023-04-22 10:45:39 +03:00 committed by Megamouse
parent 6b9d0d5df5
commit 6bf77166e1
8 changed files with 51 additions and 6 deletions

View file

@ -2788,6 +2788,7 @@ void main_window::CreateConnects()
connect(ui->mw_searchbar, &QLineEdit::textChanged, m_game_list_frame, &game_list_frame::SetSearchText);
connect(ui->mw_searchbar, &QLineEdit::returnPressed, m_game_list_frame, &game_list_frame::FocusAndSelectFirstEntryIfNoneIs);
connect(m_game_list_frame, &game_list_frame::FocusToSearchBar, this, [this]() { ui->mw_searchbar->setFocus(); });
}
void main_window::CreateDockWindows()