'Handle the down key in the summary field
If the cursor is at the end of the line then focus the description.
Otherwise, move the cursor to the end of the line so that a
subsequence "down" press moves to the end of the line.'

def summary_cursor_down(self):

    cur_position = self.summary.cursorPosition()
    end_position = len(self.summary.value())
    if (cur_position == end_position):
        self.focus_description()
    else:
        self.summary.setCursorPosition(end_position)
