orbeon/orbeon-forms — Issue #59: Server must track focus and dispatch focus event across containers
Author: ebruchez
Created: 2012-03-08 18:41:22+00:00
State: open
Labels: RFE, XBL Engine, XForms

So far, the server doesn't handle focus besides:

- changing repeat iterations when events occur on controls within repeat iterations
- propagating DOMFocusIn/Out sent by the client
- telling the client to focus when `xf:setfocus` is called

In addition, focus events are broken in XBL, in the sense that they are incorrectly retargeted outside the the shadow trees.

What we need:

- server to fully track focus
- dispatch focus in/out events not only to focusable leaf controls but also to container controls
- in particular, dispatch focus in/out events to XBL controls when needed
- update focus when focused control becomes non-relevant, readonly or non-visible (case, dialog)
- update focus when iterations disappear
- update focus upon repeat iterations changes including via setfocus, insert/delete