Is there a way to prevent tabs and shift-tabs in a modal dhx window from leaving the window and, for example, going into the browser address bar, or even fields in the underlying parent window?
If there’s not some built-in mechanism, I’ve come up with a cheat…
Before the first field on the form add a dummy tag, such as
With this in place, a shift-tab while in the real first field of the form will cause the link to become active, triggering the onFocus event, which sets the focus on the last field.
At the other end, after the last field of the form add a dummy tag, such as
With this in place, a tab out of the last “real” field of the form will cause the link to become active, triggering the onFocus event, which sets the focus (and in this case, assuming the first field is an field, selects all the text).
Thi works great in IE8 and FF, but so far I cannot get it to work in Chrome. Chrome is probably trying “help me” by ignoring empty objects.
Now have it working in Chrome by adding some style and using as the link text. For example, the first one is:
I was looking for a solution on this and found this thread.
Thank you bhambob for sharing this !!!