On the current form (you can get the current form using Display.getInstance().getCurrent()
) invoke getFocused()
. You can also bind a focus listener using addFocusListener
on the form or on the component you want to track.
Notice that with touch device the concept of focus isn't quite the same since focus isn't marked on such devices.