1
0
forked from 0ad/0ad

Focus map-selection list by default in single-player game setup screen, to allow keyboard navigation

This was SVN commit r9009.
This commit is contained in:
Ykkrosh 2011-03-04 14:29:28 +00:00
parent 2ef1b9a867
commit 3e22cf4cae

View File

@ -224,8 +224,18 @@ function init(attribs)
};
}
if (g_IsNetworked)
{
// For multiplayer, focus the chat input box by default
getGUIObjectByName("chatInput").focus();
}
else
{
// For single-player, focus the map list by default,
// to allow easy keyboard selection of maps
getGUIObjectByName("mapSelection").focus();
}
}
function cancelSetup()
{