|
|
@ -1161,7 +1161,7 @@ $.fn.dropdown = function(parameters) { |
|
|
|
if( module.is.visible() ) { |
|
|
|
|
|
|
|
// enter (select or open sub-menu)
|
|
|
|
if(pressedKey == keys.enter || pressedKey == keys.delimiter) { |
|
|
|
if(pressedKey == keys.enter) { |
|
|
|
if(pressedKey == keys.enter && hasSelectedItem && hasSubMenu && !settings.allowCategorySelection) { |
|
|
|
module.verbose('Pressed enter on unselectable category, opening sub menu'); |
|
|
|
pressedKey = keys.rightArrow; |
|
|
@ -1278,7 +1278,7 @@ $.fn.dropdown = function(parameters) { |
|
|
|
} |
|
|
|
else { |
|
|
|
// delimiter key
|
|
|
|
if(pressedKey == keys.delimiter) { |
|
|
|
if(pressedKey == keys.delimiter && settings.allowAdditions && module.is.multiple()) { |
|
|
|
event.preventDefault(); |
|
|
|
} |
|
|
|
// down arrow (open menu)
|
|
|
|