+ # Check whether we should do soft replacement
+ def softReplaceCheck( self, scanCode ):
+ # First check if not the default layer
+ if self.layer == 0:
+ return True
+
+ # Check if current layer is set the same as the BaseMap
+ if not self.baseLayout is None and scanCode in self.layerLayoutMarkers[ self.layer ]:
+ return False
+
+ # Otherwise, allow replacement
+ return True
+