orbeon/orbeon-forms — Issue #58: XBL engine should handle focus events for the component
Author: avernet
Created: 2012-03-07 23:11:57+00:00
State: open
Labels: XBL Implementation

See for instance what we do in the [autocomplete.xbl]. (A newer version of this code will listen on an event targeted at an enclosing group, and forward that event.) The XBL engine could always do this automatically for the component. The component could opt in for this to happen, but I can't think of cases where we wouldn't want this, other than maybe for backward compatibility, so we could have the focus handling always handled by the XBL engine by default.

[autocomplete.xbl]: https://github.com/orbeon/orbeon-forms/blob/e8773be4986a3154ac0ee74f4589073554547fcb/src/resources-packaged/xbl/orbeon/autocomplete/autocomplete.xbl#L197