On 21:13:31 Oct 28, plancake wrote:
>
> Ok, so I have the the tabs all working correctly, but now I want to
> allow the user to navigate through the tabs by pressing Ctrl+right
> arrow. Does anyone have any ideas? BTW the tabs are ajax content if
> that makes a difference.
If you use the shotkeys plugin, then this code works well for me
in both directions. For some reason I am unable to capture 'Ctrl+right'
in Firefox. BTW the above mentioned plugin is cross browser...
$(document).bind("keydown", 'Shift+right', function(e) {
var $graphtabs = $('#graphs > ul').tabs();
var curtab = $graphtabs.data('selected.tabs');
$("#graphs > ul").tabs("select", ++curtab);
return false;
});
$(document).bind("keydown", 'Shift+left', function(e) {
var $graphtabs = $('#graphs > ul').tabs();
var curtab = $graphtabs.data('selected.tabs');
$("#graphs > ul").tabs("select", --curtab);
return false;
});
Hope this helps.
-Girish
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---