activeControl

activeControl(): Control;

The activeControl method of the Application class returns a reference to the control that currently has the focus in the application that is running.

This method returns a null value if the focus is not on a control of a form of the application.