def move_selection(reverse=False):
global selected_pid<EOL>if selected_pid not in gunicorns:<EOL><INDENT>selected_pid = None<EOL><DEDENT>found = False<EOL>pids = sorted(list(gunicorns.keys()), reverse=reverse)<EOL>for pid in pids + pids:<EOL><INDENT>if selected_pid is None or found:<EOL><INDENT>selected_pid = pid<EOL>return<EOL><DEDENT>found = pid == selected_pid<EOL><DEDENT>
Goes through the list of gunicorns, setting the selected as the one after
the currently selected.