In .Net controls have a LostFocus event that fires when the control is no longer the active object; tabbing to next control or clicking somewhere else on the application. In Wolfram Language does EventHandler have a similar event?

The "MouseMoved" event cannot be used as this creates all manner of issues in a UI. Is there a hidden equivalent to .Net's LostFocus? If not can one be replicated without being dependent on the mouse events?

  • $\begingroup$ I don't think there is a general way: mathematica.stackexchange.com/q/31073/5478 $\endgroup$ – Kuba Feb 26 '18 at 13:16
  • $\begingroup$ AFAIK, Mathematica does make such events available to the user. $\endgroup$ – m_goldberg Feb 26 '18 at 17:01
  • $\begingroup$ You do have ”MouseExited” but nothing to do with focus that I’ve seen. Try selection tracking though. I think that works. $\endgroup$ – b3m2a1 Feb 26 '18 at 20:30
  • $\begingroup$ @b3m2a1 and Edmund, I've put there a CW answer to mark is as a duplicate and let future readers know what is the state of art. Feel free to edit it or let me know if you disagree with closing etc. $\endgroup$ – Kuba Feb 26 '18 at 21:52
  • $\begingroup$ @Kuba Makes sense. Thanks. $\endgroup$ – Edmund Feb 27 '18 at 13:39