ID:2541859
 
Resolved
The input control now has on-focus and on-blur parameters. These may be extended to other controls in the future.
Applies to:DM Language
Status: Resolved (513.1511)

This issue has been resolved.
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.
I would love this
Lummox JR resolved issue with message:
The input control now has on-focus and on-blur parameters. These may be extended to other controls in the future.
Can it be the future?