Allow exiting from edit mode by right-clocking popup