Accessibility support - give focus to tooltip
May 21, 2008 - 10:16am — pupppet
| Project: | clueTip - flexible, enhanced tooltip |
| Version: | 0.9.7 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Is it possible to give focus to the tooltip immediately after activating it so in the case of a keyboard user, the user doesn't have to tab through the entire page to reach the tooltip's contents? This is particularly important when the activation has been set to 'click' and a keyboard user would need to activate the 'x' to close the tooltip.

Comments
#1
Hi there,
it's certainly possible to do this (sorry for the delay in replying). I put up a demo page for you at http://test.learningjquery.com/cluetip/demo/givefocus.html
I'm pretty sure that IE won't allow an element to get focus unless it's a link or a form element, unless that element has its tabIndex property set. So, that's what I did: First set the clueTip's inner div to have a tabIndex of 1 and then gave it focus. I did this using the onShow option.
Let me know if you still have questions.