Paul,
 
If the elements are tabbable there's really no simple way to avoid them
but you certainly can set an explicit order for the subset of elements
you'd like to receive the focus first with the tabindex property. Number
the ones you want sequentially starting with 1. I haven't tested to see
whether elements in the host page will interact with these numbers, but
you should be able to find an appropriate sequential range.
 
It's probably overkill but you could set up some javascript (sorry
that's not my thing) to cycle the focus back to the start of your
tabindex sequence, bypassing the other elements you're not interested
in.
 
::Michael

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paul
Sent: Thursday, February 15, 2007 6:52 PM
To: [email protected]
Subject: [Javawin] Keeping the focus


Hi,

Is there a way to keep the focus on only the controls in a Dialog?

I have a dialog with a text box, ok, and cancel button.  But if you hit
the TAB key, you can cycle through ALL the other elements in the page,
not just the dialog... creating the possibility for some very confused
users. 

cheers
Paul


_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to