code: def isExpandKeyEvent(self, 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)
docs: Check if key event should expand rectangular selection