On 04/21/2010 12:11 PM, Denis Gervalle wrote: > Hi devs, Note that the keyup handler is not the best option IMO. It would fail if the user copy-pastes text using the mouse. Additionally, the keyup is executed too often, maybe onchange would be enough, although this means that the highlight won't be applied until the use moves the focus out of the field.
Maybe a better idea would be to: - apply highlight onfocus, even if the input is empty, and keep it that way as long as the input still has focus - onblur decide if the highlight needs to be kept or not -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

