You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful to be able to force focus to specific element (a text field for example), and similarly, to detect when an element gains focus. Something along the lines of:
Where FOCUS is an enum of possible event types (well, technically a const of iota, but you get the point). This would also allow a uniform interface to similar operations such as OnChanged (similar to how event handling is done in JavaScript):
It would be very useful to be able to force focus to specific element (a text field for example), and similarly, to detect when an element gains focus. Something along the lines of:
If we implemented named events,
OnFocus
could be generalized to something like:Where
FOCUS
is an enum of possible event types (well, technically aconst
ofiota
, but you get the point). This would also allow a uniform interface to similar operations such asOnChanged
(similar to how event handling is done in JavaScript):The text was updated successfully, but these errors were encountered: