|
@ -40,6 +40,7 @@ $.fn.dropdown = function(parameters) { |
|
|
className = settings.className, |
|
|
className = settings.className, |
|
|
message = settings.message, |
|
|
message = settings.message, |
|
|
fields = settings.fields, |
|
|
fields = settings.fields, |
|
|
|
|
|
keys = settings.keys, |
|
|
metadata = settings.metadata, |
|
|
metadata = settings.metadata, |
|
|
namespace = settings.namespace, |
|
|
namespace = settings.namespace, |
|
|
regExp = settings.regExp, |
|
|
regExp = settings.regExp, |
|
@ -1021,7 +1022,6 @@ $.fn.dropdown = function(parameters) { |
|
|
keydown: function(event) { |
|
|
keydown: function(event) { |
|
|
var |
|
|
var |
|
|
pressedKey = event.which, |
|
|
pressedKey = event.which, |
|
|
keys = module.get.shortcutKeys(), |
|
|
|
|
|
isShortcutKey = module.is.inObject(pressedKey, keys) |
|
|
isShortcutKey = module.is.inObject(pressedKey, keys) |
|
|
; |
|
|
; |
|
|
if(isShortcutKey) { |
|
|
if(isShortcutKey) { |
|
@ -1135,7 +1135,6 @@ $.fn.dropdown = function(parameters) { |
|
|
keydown: function(event) { |
|
|
keydown: function(event) { |
|
|
var |
|
|
var |
|
|
pressedKey = event.which, |
|
|
pressedKey = event.which, |
|
|
keys = module.get.shortcutKeys(), |
|
|
|
|
|
isShortcutKey = module.is.inObject(pressedKey, keys) |
|
|
isShortcutKey = module.is.inObject(pressedKey, keys) |
|
|
; |
|
|
; |
|
|
if(isShortcutKey) { |
|
|
if(isShortcutKey) { |
|
@ -1495,21 +1494,6 @@ $.fn.dropdown = function(parameters) { |
|
|
return range.text.length - rangeLength; |
|
|
return range.text.length - rangeLength; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
shortcutKeys: function() { |
|
|
|
|
|
return { |
|
|
|
|
|
backspace : 8, |
|
|
|
|
|
delimiter : 188, // comma
|
|
|
|
|
|
deleteKey : 46, |
|
|
|
|
|
enter : 13, |
|
|
|
|
|
escape : 27, |
|
|
|
|
|
pageUp : 33, |
|
|
|
|
|
pageDown : 34, |
|
|
|
|
|
leftArrow : 37, |
|
|
|
|
|
upArrow : 38, |
|
|
|
|
|
rightArrow : 39, |
|
|
|
|
|
downArrow : 40 |
|
|
|
|
|
}; |
|
|
|
|
|
}, |
|
|
|
|
|
value: function() { |
|
|
value: function() { |
|
|
var |
|
|
var |
|
|
value = ($input.length > 0) |
|
|
value = ($input.length > 0) |
|
@ -3338,6 +3322,20 @@ $.fn.dropdown.settings = { |
|
|
value : 'value' // actual dropdown value
|
|
|
value : 'value' // actual dropdown value
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
keys : { |
|
|
|
|
|
backspace : 8, |
|
|
|
|
|
delimiter : 188, // comma
|
|
|
|
|
|
deleteKey : 46, |
|
|
|
|
|
enter : 13, |
|
|
|
|
|
escape : 27, |
|
|
|
|
|
pageUp : 33, |
|
|
|
|
|
pageDown : 34, |
|
|
|
|
|
leftArrow : 37, |
|
|
|
|
|
upArrow : 38, |
|
|
|
|
|
rightArrow : 39, |
|
|
|
|
|
downArrow : 40 |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
selector : { |
|
|
selector : { |
|
|
addition : '.addition', |
|
|
addition : '.addition', |
|
|
dropdown : '.ui.dropdown', |
|
|
dropdown : '.ui.dropdown', |
|
|