Auto focus on buttons in main screen (closes #281)

This commit is contained in:
Florian Küpper committed 2017-08-14 22:41:17 +02:00
1 parent c5074c187a
commit c8bc280e5b
1 file changed
+5
+5
View File
@@ -57,6 +57,7 @@ namespace Vocaluxe.Screens
_Texts[_TextRelease].Visible = true;
_Statics[_StaticWarningProfiles].Visible = false;
_Texts[_TextWarningProfiles].Visible = false;
_SelectElement(_Buttons[_ButtonSing]);
}
public override bool HandleInput(SKeyEvent keyEvent)
@@ -105,6 +106,10 @@ namespace Vocaluxe.Screens
return false;
break;
case Keys.Escape:
_SelectElement(_Buttons[_ButtonExit]);
break;
}
}
return true;