Comment 2 for bug 1776557

Revision history for this message
a. bellenir (abellenir) wrote :

here's a branch that will select the right-clicked row if it is not already selected: http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/abellenir/lp1669856-lp1776557-egGrid-right-click

note: this will deselect other rows in favor of the clicked row, in the even that you already have some rows selected, and then right click on an unselected row. this version of the code does not consider if you are holding ctrl or shift when you right-click.

it might be possible to support ctrl+right-click and shift+right-click by using $scope.handleRowClick($event, e.item); on line 662 instead of $event.target.click(), but this is incomplete. it seems to update $scope.selected as it should, but the display is not updated, so there is no visual indication of what rows you're actually operating on.

this branch also attempts to address bug #1669856, since the two are closely related.