I’m trying to find if a text input has focus when the enter key is pressed (form submit).
Is there a hasFocus property on the UI components?
Or is there a property on the form submit event that refers to the target that has focus? The currentTarget is referring to the button even when another input has focus when I press the enter key.