don't execute mouse shorcut action after finishing middle mouse button drag (IDEA-53663)

This commit is contained in:
Dmitry Jemerov
2012-01-05 14:25:27 +01:00
parent 29f40d7a5c
commit 05a1415c5d
@@ -3774,6 +3774,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
if (isColumnMode() || e.isAltDown()) {
final LogicalPosition blockStart = selectionModel.hasBlockSelection() ? selectionModel.getBlockStart() : oldLogicalCaret;
selectionModel.setBlockSelection(blockStart, getCaretModel().getLogicalPosition());
IdeEventQueue.getInstance().blockNextEvents(e); // don't process action on mouse released (IDEA-53663)
}
else {
if (getMouseSelectionState() != MOUSE_SELECTION_STATE_NONE) {