Preserve the position in a menu when moving into one of its submenus.
gui.c: Overhaul the autorepeat behaviour of get_gui_input.