We should add a comment explaining why we want this to close code hints (command might modify the text, pop up other UI like Quick Edit, etc.).