How to get focused control

Hi all,

On a form I override the task() method to catch “Enter” key, thenI would like to know with control on my form has focus. How to do this ?

Thanks for your help.

Hi, simply use this.selectedControl().

Thanks, it was too simple.