From: Tuukka Lehtonen Date: Thu, 27 Dec 2018 09:51:59 +0000 (+0200) Subject: Start routing with 't' or 'T' X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F2586%2F1;p=simantics%2Fdistrict.git Start routing with 't' or 'T' gitlab #25 Change-Id: Ib6c7597d5667173635da4217076ae51759520063 --- 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;