Issue #1781: Fix modifier key to keep selected item selected

Fixed issue #1781 

Function toggleRowSelection changes:
If multiple rows are selected together with the clicked row, all other rows are now deselected, but keeps the clicked row selected.

Note that switching between `multiSelect=true` and `multiSelect=false` inherits this behavior as well.