I would like to be able to call an optional verb whenever the element that has this hook defined gains or loses focus.
Currently, the best alternative to this is to embed a hidden script in the browser that polls focus. Unfortunately, this means that it doesn't trigger *when* the focus changes, but at some indeterminate point after the focus has been changed.
This would be useful for advanced text handling, allowing the client to send the notify the server what's in an input element when they change focus to something else, or it could be a good way to destroy a popup window that the player can't be assed to deal with right now.
It would also help with "Press any key" dialogue prompts being handled on the client-side.
Feb 3 2020, 9:47 pm