Fix #3078 - right click deselect in Layers
This MR fixes issue #3078 (closed).
The issue was that right-clicking on the list of objects in the Objects dialog would set the selection to only the object clicked, even if multiple objects were selected before the right click. The patch corrects this by preserving the current selection when a right click is detected.
Edited by Adam Belis