Set the default focus the listbox.
This commit is contained in:
parent
d7cb8b1a39
commit
cfbd2836bb
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ tcampaign_difficulty::tcampaign_difficulty(const std::vector<std::string>& items
|
|||
void tcampaign_difficulty::pre_show(CVideo& /*video*/, twindow& window)
|
||||
{
|
||||
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
|
||||
window.keyboard_capture(&list);
|
||||
|
||||
std::map<std::string, string_map> data;
|
||||
|
||||
foreach(const legacy_menu_item& item, items_) {
|
||||
|
|
Loading…
Add table
Reference in a new issue