consider ItemEvent a user activity and allow write actions from it (EA-81912)
authorpeter <peter@jetbrains.com>
Mon, 2 May 2016 18:23:25 +0000 (20:23 +0200)
committerpeter <peter@jetbrains.com>
Mon, 2 May 2016 18:54:03 +0000 (20:54 +0200)
platform/platform-impl/src/com/intellij/ide/IdeEventQueue.java

index 8e51040024b80d88f4c8cdf71e6eed8481b6b222..3d4d06dee39af65eba3a99c93719f5068024bbcd 100644 (file)
@@ -388,7 +388,8 @@ public class IdeEventQueue extends EventQueue {
     AWTEvent oldEvent = myCurrentEvent;
     myCurrentEvent = e;
 
-    try (AccessToken ignored = ourTransactionGuard == null ? null : ourTransactionGuard.startActivity(myIsInInputEvent)) {
+    boolean userActivity = myIsInInputEvent || e instanceof ItemEvent;
+    try (AccessToken ignored = ourTransactionGuard == null ? null : ourTransactionGuard.startActivity(userActivity)) {
       _dispatchEvent(e, false);
     }
     catch (Throwable t) {