Skip to content

Commit

Permalink
tgame_load: set initial focus to list not filter textbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 6, 2016
1 parent 6e19ec7 commit 1dedd10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/dialogs/game_load.cpp
Expand Up @@ -113,10 +113,9 @@ void tgame_load::pre_show(CVideo& /*video*/, twindow& window)

ttext_box* filter
= find_widget<ttext_box>(&window, "txtFilter", false, true);
window.keyboard_capture(filter);

filter->set_text_changed_callback(
boost::bind(&tgame_load::filter_text_changed, this, _1, _2));
window.keyboard_capture(filter);

tlistbox* list
= find_widget<tlistbox>(&window, "savegame_list", false, true);
Expand All @@ -130,6 +129,7 @@ void tgame_load::pre_show(CVideo& /*video*/, twindow& window)
list->set_callback_value_change(
dialog_callback<tgame_load, &tgame_load::list_item_clicked>);
#endif
window.keyboard_capture(list);

{
cursor::setter cur(cursor::WAIT);
Expand Down

0 comments on commit 1dedd10

Please sign in to comment.