Added Tab Cycle

This commit is contained in:
Carlos Ortiz 2019-03-15 22:18:32 -06:00
parent d54e047d60
commit fda3d62713
1 changed files with 7 additions and 0 deletions

View File

@ -122,6 +122,13 @@ int main(int argc, char** argv)
{ {
break; break;
} }
else if (event.key == TB_KEY_TAB) {
++active_input;
if (active_input > 2)
{
active_input = 0;
}
}
else if ((event.key == TB_KEY_ARROW_UP) && (active_input > 0)) else if ((event.key == TB_KEY_ARROW_UP) && (active_input > 0))
{ {
--active_input; --active_input;