mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
Fix focus returning to the search bar after project reload
This commit is contained in:
parent
af335b82e2
commit
8e13c98c5e
|
|
@ -138,6 +138,13 @@ void MainWindow::setWindowDisabled(bool disabled) {
|
|||
ui->actionCheck_for_Updates->setDisabled(false);
|
||||
if (!disabled)
|
||||
togglePreferenceSpecificUi();
|
||||
|
||||
// Disabling the central widget above sets focus to the map list's search bar,
|
||||
// which prevents users from using keyboard shortcuts for menu actions.
|
||||
// Rather than explicitly set the tab order to give focus to something else
|
||||
// (which is a bit of a pain to set up and maintain) we just make sure focus
|
||||
// is on something that (mostly) ignores the keyboard.
|
||||
ui->graphicsView_Map->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::initWindow() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user