From 2bc8c7b42ce81042e200896829f855db361a382c Mon Sep 17 00:00:00 2001 From: Marcelo Sauerbrunn Portugal Date: Wed, 4 Jul 2018 20:49:53 -0400 Subject: [PATCH] fix(selection): Fix multiSelect + modifierKeysToMultiSelect Revert part of 2485652 (#6793) fix #6791 --- src/features/selection/js/selection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/selection/js/selection.js b/src/features/selection/js/selection.js index 526035d5de..8ea059642e 100644 --- a/src/features/selection/js/selection.js +++ b/src/features/selection/js/selection.js @@ -955,7 +955,8 @@ } else if ($scope.grid.options.enableSelectRowOnFocus) { uiGridSelectionService.toggleRowSelection($scope.grid, $scope.row, evt, - false, $scope.grid.options.noUnselect); + ($scope.grid.options.multiSelect && !$scope.grid.options.modifierKeysToMultiSelect), + $scope.grid.options.noUnselect); } $scope.row.setFocused(!$scope.row.isFocused); $scope.grid.api.selection.raise.rowFocusChanged($scope.row, evt);