Cancelled default event for button.