natiny_view_get_focus
NatinyView natiny_view_get_focus(void);
Returns the view that currently holds the program-wide input focus.
Returns
| Type | Description |
|---|---|
NatinyView |
Focused view handle, or 0 when no view has focus |
Example
if (natiny_view_get_focus() == 0)
natiny_view_set_focus(first_field);