The effect of velocity shear on dynamo action due to rotating convection