+ else if(nav==NAV_NEXT || nav==NAV_PREVIOUS)
+ {
+ vector<Widget *>::iterator i = find(nav_order, input_focus);
+
+ if(nav==NAV_NEXT)
+ {
+ if(i!=nav_order.end())
+ ++i;
+ if(i==nav_order.end())
+ i = nav_order.begin();
+ }
+ else
+ {
+ if(i==nav_order.begin())
+ i = nav_order.end();
+ --i;
+ }
+
+ set_input_focus(*i);
+
+ return true;
+ }