From 7e1c0263ce7496c044e0de710b5db37a749df4f3 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Thu, 28 Sep 2017 19:09:10 +0300 Subject: [PATCH] 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 --- .../src/org/simantics/diagram/elements/TextGridNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.47.1