Handle empty spots more intelligently

This commit is contained in:
simon.kagstrom 2009-01-23 18:26:34 +00:00
parent 4799e2e91b
commit fa07068d04

View File

@ -124,7 +124,12 @@ void VirtualKeyboard::select_next(int dx, int dy)
/* Skip the empty spots */
if (key.name == NULL)
this->select_next(dx, dy);
{
if (dy != 0) /* Look left */
this->select_next(-1, 0);
else
this->select_next(dx, dy);
}
}
void VirtualKeyboard::toggle_shift()