From 30591a1b91be88fa9061a00d179a3a8ee54fb7e4 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Thu, 27 Dec 2018 11:51:59 +0200 Subject: [PATCH] Start routing with 't' or 'T' gitlab #25 Change-Id: Ib6c7597d5667173635da4217076ae51759520063 --- .../district/network/ui/participants/DNPointerInteractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/participants/DNPointerInteractor.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/participants/DNPointerInteractor.java index ac90af7f..298c4ce1 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/participants/DNPointerInteractor.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/participants/DNPointerInteractor.java @@ -68,7 +68,7 @@ public class DNPointerInteractor extends PointerInteractor { @EventHandler(priority = 1000) public boolean enterroutingMode(KeyEvent ke) { - if (ke.character == 't' && ke instanceof KeyReleasedEvent) { + if (Character.toLowerCase(ke.character) == 't' && ke instanceof KeyReleasedEvent) { getContext().add(new RoutingMode(0)); } return false; -- 2.47.1