Inverse magnetic/shear catalysis