CMS-1514 TypeScript: Use events to launch DeleteSpacesWindow