Adding custom events show/shown/hide/hidden like bootstrap modal

If there is nothing selected, there is no event fired. For something like a punch to edit where you would want to close the field, you have nothing to hook into.