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
I've been puzzling over this. I'm only bothering with the mouse - no "TAB to switch focus" problems, although that might also be interesting to investigate. There's two ways to go with this:
focus is lost if the user clicks anywhere else. This one's pretty darn easy to implement of course - just add a focus bool, set it to true if a mouse click overlaps and to false if not.
focus is lost only if the user clicks on another item that can get focus. This is the one I've been puzzling over. Getting focus is easy, but how to transmit to other UI elements it has lost focus? I figured that one way would be if the Guido library allows you to to send a message to the Interactive object, and that the latter "broadcasts" that message to all other objects registered by triggering a messageReceived function (like it now triggers mouse events). Or perhaps an 'Interactive.grabFocus(this)' function, which triggers a 'lostFocus' function in all other objects? I don't know if this is the best approach though.
Thoughts?
The text was updated successfully, but these errors were encountered:
BTW, does Guido also send key presses to registered objects, like it does with the mouse events? If so, the "disabled list" example could be updated to highlight this, no? (should this be a separate issue?)
I've been puzzling over this. I'm only bothering with the mouse - no "TAB to switch focus" problems, although that might also be interesting to investigate. There's two ways to go with this:
Thoughts?
The text was updated successfully, but these errors were encountered: