"loss of focus" event on textboxes


is it possible to use a “loss of focus” event on textboxes?

The goal is to format the textbox once the focus is lost in order to avoid imposing precise formatting on the user’s keystroke but allow him to see the correction in near real time.
The manipulations are as follows: capitalize or titlecase, remove illegal characters, etc…

I tried going through the OnValidate event of my form but it gets in the way while the user is typing.

Product: PowerShell Universal
Version: 3.4.5

There isn’t a great way to do this that I can think of but we can add an event handler for that.


Thanks Adam.