Fixed events for CustomButton, PushButton and ToggleButton.