]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Start routing with 't' or 'T' 86/2586/1 release/1.37.0
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 27 Dec 2018 09:51:59 +0000 (11:51 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 27 Dec 2018 09:51:59 +0000 (11:51 +0200)
gitlab #25

Change-Id: Ib6c7597d5667173635da4217076ae51759520063

org.simantics.district.network.ui/src/org/simantics/district/network/ui/participants/DNPointerInteractor.java

index ac90af7fb08b79b457231d50958d6be06935aa8d..298c4ce11e7be89c25f881cc6e1ca710b20f7b39 100644 (file)
@@ -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;