Change-Id: I94c4a1bc57287d250963456339aa24e6a10a92c0
* pointed at (i.e. click on an object then alt-click to cycle).
*/
private void onMouseUp(MouseEvent e) {
+
+ // Only perform selection when mouse button 1 is used.
+ // This prevents right-click from also changing the selection, since it's
+ // used to display a context menu that depends on the current selection.
+ if (e.button != 1) {
+ return;
+ }
+
boolean isShift = (e.stateMask & SWT.SHIFT) != 0;
boolean isAlt = (e.stateMask & SWT.ALT) != 0;