IDEA-83405 Cannot understand, when Copy reference should be available on the context menu of the Groovy Shell

Clearing auxiliary state after the processing
This commit is contained in:
Denis.Zhdanov
2012-03-30 11:38:40 +04:00
parent 805b5f25fc
commit be06a4414e
@@ -5099,6 +5099,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
for (EditorMouseListener mouseListener : myMouseListeners) {
mouseListener.mousePressed(event);
}
putUserData(EditorActionUtil.EXPECTED_CARET_OFFSET, null);
// On some systems (for example on Linux) popup trigger is MOUSE_PRESSED event.
// But this trigger is always consumed by popup handler. In that case we have to