Let\'s say I have a document full of focusable elements, either because they are innately focusable (like ) or because they have
The jQuery UI dialog does this by capturing keydown events, checking if they are for TAB or not, then manually focusing the correct element.
keydown