Fixed #2790 where Chrome throws warning about event.returnValue being deprecated.