Skip to content

Commit 729916f

Browse files
lonemadmaxpulkomandy
authored andcommitted
City selection window: focus search text box
Laying out controls seems to change the focus. Set it afterwards.
1 parent a00e433 commit 729916f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/CitiesListSelectionWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ CitiesListSelectionWindow::CitiesListSelectionWindow(BRect rect, BWindow* parent
150150
fCityControl->SetToolTip(B_TRANSLATE("Enter location: city, country, region"));
151151
fCityControl->SetModificationMessage(
152152
new BMessage(kSearchMessage));
153-
fCityControl->MakeFocus(true);
154153

155154
BButton* fButtonOk
156155
= new BButton("ok", B_TRANSLATE("OK"), new BMessage(kSelectedCity));
@@ -169,6 +168,7 @@ CitiesListSelectionWindow::CitiesListSelectionWindow(BRect rect, BWindow* parent
169168
.End()
170169
.End();
171170
fButtonOk->MakeDefault(true);
171+
fCityControl->MakeFocus(true);
172172

173173
_StartSearch();
174174
}

0 commit comments

Comments
 (0)