+ if(nav==NAV_UP && view_mode==GRID)
+ {
+ unsigned row = item_index_to_row(focus_index);
+ if(row>0)
+ set_focus_index(rows[row-1].first+focus_index-rows[row].first);
+ else
+ set_focus_index(0);
+ }
+ else if(nav==NAV_DOWN && view_mode==GRID)
+ {
+ unsigned row = item_index_to_row(focus_index);
+ if(row+1<rows.size())
+ set_focus_index(rows[row+1].first+focus_index-rows[row].first);
+ else
+ set_focus_index(items.size()-1);
+ }
+ else if(nav==NAV_UP || (nav==NAV_LEFT && view_mode==GRID))