Event handler issues

In the IDE on an object I right click select add to assets, then there is a submenu add handler. This is sometimes greyed out, I have just found you can also do this from a pulldown at the top which works ok every time. Just a note about the add to assets one failing.