Right-clicking with multiple opcodes selected no longer removes selection.
@@ -45,8 +45,9 @@ public class OpcodeMouseListener implements ReleaseListener {
@Override
public void mouseReleased(MouseEvent e) {
int button = e.getButton();
+
+ if (list.getSelectedIndices().length == 1) {
// If not left-click, enforce selection at the given location
- if (!list.controlDown && !list.shiftDown) {
if (button != MouseEvent.BUTTON1) {
int index = list.locationToIndex(e.getPoint());
list.setSelectedIndex(index);
