diff options
author | Berend <please@frique.me> | 2013-08-25 00:13:47 +0700 |
---|---|---|
committer | Berend <please@frique.me> | 2013-08-25 00:13:47 +0700 |
commit | 419a506b18a99736998a7e71e7ba0c28e98dd2c2 (patch) | |
tree | d7cdfe9f120f61970ce7c51b9167010b17976258 /js/jquery.multi-select.js | |
parent | 704d8cd87a10b8e52d4dd12bf67978803ff445f7 (diff) | |
download | multi-select-419a506b18a99736998a7e71e7ba0c28e98dd2c2.zip multi-select-419a506b18a99736998a7e71e7ba0c28e98dd2c2.tar.gz multi-select-419a506b18a99736998a7e71e7ba0c28e98dd2c2.tar.bz2 |
Make shift-tab focus on the previous control
As it would when working with native form controls. Does not work in IE
yet, but so does regular tabbing at the moment.
Diffstat (limited to 'js/jquery.multi-select.js')
-rw-r--r-- | js/jquery.multi-select.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index eb0e758..f8e70a9 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -198,6 +198,10 @@ e.stopPropagation(); that.switchList($list); return; + case 9: + if(e.shiftKey){ + that.$element.trigger('focus'); + } } }); }, |