|
|
@ -1163,7 +1163,7 @@ ItemSet.prototype._onDragStart = function (event) { |
|
|
|
|
|
|
|
event.stopPropagation(); |
|
|
|
} |
|
|
|
else if (this.options.editable.add && event.srcEvent.ctrlKey) { |
|
|
|
else if (this.options.editable.add && (event.srcEvent.ctrlKey || event.srcEvent.metaKey)) { |
|
|
|
// create a new range item when dragging with ctrl key down
|
|
|
|
this._onDragStartAddItem(event); |
|
|
|
} |
|
|
@ -1386,7 +1386,7 @@ ItemSet.prototype._onDragEnd = function (event) { |
|
|
|
ItemSet.prototype._onSelectItem = function (event) { |
|
|
|
if (!this.options.selectable) return; |
|
|
|
|
|
|
|
var ctrlKey = event.srcEvent && event.srcEvent.ctrlKey; |
|
|
|
var ctrlKey = event.srcEvent && (event.srcEvent.ctrlKey || event.srcEvent.metaKey); |
|
|
|
var shiftKey = event.srcEvent && event.srcEvent.shiftKey; |
|
|
|
if (ctrlKey || shiftKey) { |
|
|
|
this._onMultiSelectItem(event); |
|
|
|