disable the enter event