Add argument enabling user to determine if preventDefault should be set.