protected OnKeyUp ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected override bool OnKeyUp(bool down)
{
if (down)
{
var it = m_Menu.Children.FindLastIndex(x => x == m_SelectedItem);
if (it - 1 >= 0)
OnItemSelected(m_Menu.Children[it - 1]);
}
return true;
}