summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/jquery.multi-select.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js
index df74e12..66c14e2 100644
--- a/js/jquery.multi-select.js
+++ b/js/jquery.multi-select.js
@@ -193,6 +193,18 @@
e.stopPropagation();
that.switchList($list);
return;
+ case 9:
+ if(that.$element.is('[tabindex]')){
+ e.preventDefault();
+ var tabindex = parseInt(that.$element.attr('tabindex'), 10);
+ tabindex = (e.shiftKey) ? tabindex-1 : tabindex+1;
+ $('[tabindex="'+(tabindex)+'"]').focus();
+ return;
+ }else{
+ if(e.shiftKey){
+ that.$element.trigger('focus');
+ }
+ }
}
if($.inArray(e.which, that.options.keySelect) > -1){
e.preventDefault();