Is there a way to detect if the user closes a Label’s editor but has not changed the text? In an app that uses text commend entry in a Label, I wanted to be able to have the user, in certain cases, hit Enter to continue (such as if the descriptive text in the box above needs to be scrolled, like a Terminal window), but without typing anything. However, the labelTextChanged() function is not called unless the user actually changes the contents of the Label before hitting Enter.
I do not want to do anything if the user clicks away from the Label instead of hitting Enter. It’s only if they hit Enter (whether they type in any text or not) that I want to take action (such as showing more text in the box above).
Is that do-able, using a Label? Or do I need to make my own Label sub-class somehow?