Prevent material selection cursor from going past its bounds

develop
Anuradha Dissanayake 2013-01-02 22:27:26 +13:00
parent 1fe3a0e343
commit 581a8dd955
1 changed files with 9 additions and 7 deletions

@ -2498,10 +2498,12 @@ namespace wf_ui
else if (input->count(interface_key::CURSOR_LEFT)) else if (input->count(interface_key::CURSOR_LEFT))
{ {
--selected_column; --selected_column;
validateColumn();
} }
else if (input->count(interface_key::CURSOR_RIGHT)) else if (input->count(interface_key::CURSOR_RIGHT))
{ {
selected_column++; selected_column++;
validateColumn();
} }
else if (enabler->tracking_on && enabler->mouse_lbut) else if (enabler->tracking_on && enabler->mouse_lbut)
{ {