+ else if(key==Input::KEY_DOWN && multiline)
+ {
+ unsigned row, col;
+ text.offset_to_coords(edit_pos, row, col);
+ edit_pos=text.coords_to_offset(row+1, col);
+ }
+ else if(key==Input::KEY_UP && multiline)
+ {
+ unsigned row, col;
+ text.offset_to_coords(edit_pos, row, col);
+ if(row>0)
+ edit_pos=text.coords_to_offset(row-1, col);
+ else
+ edit_pos=0;
+ }