[Ide] Fixing disabled OSX ContextMenus in Modal dialogs(Bug 20683)