mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 21:47:53 +00:00
Set the default focus the listbox.
This commit is contained in:
parent
d7cb8b1a39
commit
cfbd2836bb
@ -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…
x
Reference in New Issue
Block a user