IDEA-124290

This commit is contained in:
Alexander Lobas
2014-04-23 15:47:18 +04:00
parent 460ef4152c
commit fc316803e9
@@ -72,6 +72,14 @@ public class SelectionTracker extends TargetingTool {
@Override
protected void handleButtonUp(int button) {
if (myState == STATE_DRAG) {
// Control clicking on a Mac is used to simulate right clicks: do not treat this as
// a selection reset (since it makes it impossible to pull up the context menu with
// a multi-selection: the right click action causes the selection to be replaced
// with the single item under the mouse)
if (SystemInfo.isMac && myInputEvent != null && myInputEvent.isControlDown()) {
return;
}
performSelection();
myState = STATE_NONE;
}