'Add a hotkey along with a shift-variant'

def add_navigation(self, name, hotkey, shift=None):

    widget = self.widget
    direction = getattr(QtGui.QTextCursor, name)
    qtutils.add_action(widget, name, (lambda : self.move(direction)), hotkey)
    if shift:
        qtutils.add_action(widget, (u'Shift' + name), (lambda : self.move(direction, True)), shift)
