Make edit menu items work in popup windows on mac.