(keyEvent)
return keyEvent.modifiers() & Qt.ShiftModifier and \
               keyEvent.modifiers() & Qt.AltModifier and \
               keyEvent.key() in (Qt.Key_Left, Qt.Key_Right, Qt.Key_Down, Qt.Key_Up,
                                  Qt.Key_PageUp, Qt.Key_PageDown, Qt.Key_Home, Qt.Key_End)
Check if key event should expand rectangular selection
Check if key event should expand rectangular selection
Check if key event should expand rectangular selection
def isExpandKeyEvent(keyEvent):
        """Check if key event should expand rectangular selection"""
        return keyEvent.modifiers() & Qt.ShiftModifier and \
               keyEvent.modifiers() & Qt.AltModifier and \
               keyEvent.key() in (Qt.Key_Left, Qt.Key_Right, Qt.Key_Down, Qt.Key_Up,
                                  Qt.Key_PageUp, Qt.Key_PageDown, Qt.Key_Home, Qt.Key_End)
def isExpandKeyEvent ( keyEvent ) : return keyEvent . modifiers ( ) & Qt . ShiftModifier and keyEvent . modifiers ( ) & Qt . AltModifier and keyEvent . key ( ) in ( Qt . Key_Left , Qt . Key_Right , Qt . Key_Down , Qt . Key_Up , Qt . Key_PageUp , Qt . Key_PageDown , Qt . Key_Home , Qt . Key_End )