Add support for shift key selection in checkable items

Fixes #1389
This commit is contained in:
Joseph Schorr 2016-04-20 15:25:20 -04:00
parent 7239c465bf
commit da4c658bde
3 changed files with 40 additions and 4 deletions

View file

@ -713,8 +713,10 @@ angular.module("core-ui", [])
'controller': '=controller'
},
controller: function($rootScope, $scope, $element) {
$scope.toggleItem = function() {
$scope.controller.toggleItem($scope.item);
$scope.toggleItem = function($event) {
$event.preventDefault();
$event.stopPropagation();
$scope.controller.toggleItem($scope.item, $event.shiftKey);
};
}
};