Set popup menu action on mouse-up (close #1)