Skip to content

Commit

Permalink
Fixes comma delimited
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Mar 23, 2015
1 parent fd9d457 commit a0d3040
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,10 @@ $.fn.dropdown = function(parameters) {
;
if(pressedKey == keys.delimiter) {
// tokenize on comma
if(module.is.visible()) {
module.event.item.click.call($selectedItem, event);
event.preventDefault();
}
}
else if(pressedKey == keys.leftArrow) {
// activate previous label
Expand Down Expand Up @@ -986,16 +990,10 @@ $.fn.dropdown = function(parameters) {
return range.text.length - rangeLength;
}
},
keyCode: function(letter) {
return (typeof letter == 'string')
? letter.charCodeAt(0)
: false
;
},
shortcutKeys: function() {
return {
backspace : 8,
delimiter : module.get.keyCode(settings.delimiter),
delimiter : 188, // comma
deleteKey : 46,
enter : 13,
escape : 27,
Expand Down

0 comments on commit a0d3040

Please sign in to comment.