Duplicate :
|
|
Relates :
|
It would be nice if FocusEvent had some identifier, or reason, the focus gained event was received. For example, if I would like to select the text in a textfield when it receives focus, except when the focus is gained as a result of MousePressed, I could use the reason to determine if the text should be selected.