private void HandleArrowSelection()
{
if (KeyDown(KeyCode.UpArrow))
{
if (Event.current.control || Event.current.command)
{
HandleLogSelection(CommandLogger.previousCommand, !Event.current.shift);
}
else
{
(CandinateContext.TopState() as CandinatesState).TryMoveSelection(-1);
}
}
else if (KeyDown(KeyCode.DownArrow))
{
if (Event.current.control || Event.current.command)
{
HandleLogSelection(CommandLogger.nextCommand, !Event.current.shift);
}
else
{
(CandinateContext.TopState() as CandinatesState).TryMoveSelection(1);
}
}
}