brothercake
07-28-2003, 05:11 AM
I'm adding keyboard navigation to my listmenu, so I have six defined keys - four for navigation, one that means "jump onto the navigation bar" and one that means "jump off and reset".
It works by looking for nodal relationships that translate to "left" or "up" and sending focus to the appropriate link ...
... but, where to send the focus when the "jump off and reset" command happens? I have to send it somewhere, otherwise it will be trapped on the navbar and you'd have to tab all the way through it to get back onto the document.
So given that the end environment is unknown, where can I send the focus that:
- is guaranteed always to exists in an XHTML document, even when it's in the XML DOM
- is capable of receiving the focus
Is there such an object, or am I gonna have to do a load of iterative checks for suitable elements??
It works by looking for nodal relationships that translate to "left" or "up" and sending focus to the appropriate link ...
... but, where to send the focus when the "jump off and reset" command happens? I have to send it somewhere, otherwise it will be trapped on the navbar and you'd have to tab all the way through it to get back onto the document.
So given that the end environment is unknown, where can I send the focus that:
- is guaranteed always to exists in an XHTML document, even when it's in the XML DOM
- is capable of receiving the focus
Is there such an object, or am I gonna have to do a load of iterative checks for suitable elements??