I’ve added a TextEditor object that allows the user to change the text of a tab label. It floats right above the tab label until the the user hits return (to confirm the change), escapes out, or the label loses focus.
I had thought that focus on the TextEditor would be lost if the user clicked
anywhere else in the interface. This doesn’t appear be the case. I can start editing one tab label, then click on the next tab over, and the TextEditor keeps floating where it was, with no call to it’s textEditorLostFocus() routine.
Is there a way to tell when the user has clicked outside this component, so I can remove it?