From 309c8b99e99e20da163ae89ffc3e0e2a9fe3bf5a Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 2 Apr 2013 07:09:09 +0000 Subject: [PATCH] Fixed broken variable shortcuts. The participant was using kpe.stateMask != SHIFT_DOWN_MASK, which did not work anymore, since SHIFT_MASK has also been added to stateMask. Switched to use !kpe.isShiftDown(). (fixes #4221) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27226 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../editor/participant/CreateVariablesShortcutParticipant.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/CreateVariablesShortcutParticipant.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/CreateVariablesShortcutParticipant.java index 43a55896..e518828c 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/CreateVariablesShortcutParticipant.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/CreateVariablesShortcutParticipant.java @@ -120,7 +120,7 @@ public class CreateVariablesShortcutParticipant extends AbstractDiagramParticipa kpe = (KeyPressedEvent) ke; - if (kpe.stateMask != java.awt.event.KeyEvent.SHIFT_DOWN_MASK || isEditing()) + if (!kpe.isShiftDown() || isEditing()) return false; if (kpe.keyCode == java.awt.event.KeyEvent.VK_A) { -- 2.47.1