From: Tuukka Lehtonen Date: Thu, 28 Sep 2017 16:09:10 +0000 (+0300) Subject: Fixed event mask of org.simantics.diagram.elements.TextGridNode X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F1056%2F3;p=simantics%2Fplatform.git Fixed event mask of org.simantics.diagram.elements.TextGridNode In order to function properly TextGridNode needs to listen to MouseMoved and MouseButtonReleased events, which were missing from the event mask. refs #7517 Change-Id: I301de9812ab9427a3ef037884c89b7cb4e7b0abe --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/TextGridNode.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/TextGridNode.java index 693862fcb..f482890e9 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/TextGridNode.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/TextGridNode.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * Copyright (c) 2007, 2017 Association for Decentralized Information Management * in Industry THTH ry. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -290,7 +290,7 @@ public class TextGridNode extends G2DParentNode implements Decoration { @Override public int getEventMask() { - return EventTypes.MouseDragBeginMask | EventTypes.KeyPressedMask; + return EventTypes.MouseDragBeginMask | EventTypes.MouseMovedMask | EventTypes.MouseButtonReleasedMask | EventTypes.KeyPressedMask; } private static boolean isEventDummy(MouseDragBegin e) {