FoxInCloud
Container GotFocus and LostFocus
Hi,
I have found that the GotFocus and LostFocus events are not triggered in FiC on containers.
Is this intentional?
Not a big deal, I will move the code elsewhere.
Paul
Is this intentional?
Yes, because VFP and HTML behave differently:
- when tabbing into a VFP container, the container's
.gotFocus()
fire without physically taking focus (eg. outlined): the focus is immediately transferred to the control with lowest.tabIndex
inside the container. - conversely in HTML the containing
<div>
takes focus and you need another TAB to set focus to the control with lowest.tabIndex
inside the container, which is pretty misleading.
As FoxInCloud controls the tabbing between controls, we could maybe silently fire the container's .gotFocus()
(.focus()
in HTML DOM event) and .lostFocus()
(.blur()
in HTML DOM event) whenever focus crosses the border of a container.
Please feedback whether such an enhancement would bring value to your Web app.