code: def isSnappedToGrid( self ):
          
          shift = QtCore.QCoreApplication.keyboardModifiers() == QtCore.Qt.ShiftModifier
          return (self._xSnapToGrid and self._ySnapToGrid) or shift
docs: Returns if both the x and y directions are snapping to the grid.
          
          :return     <bool>