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-Tag: v1.31.0~162 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=13947e594855ffed04acd240208827be13d2b560;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 (cherry picked from commit 7e1c0263ce7496c044e0de710b5db37a749df4f3) --- 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) {