Added standard right- and left-click handling to GeneralLayerCommon