Don't show menu when quitting a modal dialog using ESC key. Fixes #44