summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/jquery.multi-select.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js
index f8e70a9..65d64cf 100644
--- a/js/jquery.multi-select.js
+++ b/js/jquery.multi-select.js
@@ -199,8 +199,16 @@
that.switchList($list);
return;
case 9:
- if(e.shiftKey){
- that.$element.trigger('focus');
+ 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');
+ }
}
}
});