prevent fallthrough to deleteNode if you press j without shift
authorAndy Allan <gravitystorm@gmail.com>
Thu, 4 Nov 2010 16:50:50 +0000 (16:50 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Thu, 4 Nov 2010 16:50:50 +0000 (16:50 +0000)
net/systemeD/potlatch2/controller/SelectedWayNode.as

index d5e248208a867b304abca435e03ed7e389176c34..2bc24425ffb47f37ca2545dc484d94787c72ed9c 100644 (file)
@@ -68,7 +68,7 @@ package net.systemeD.potlatch2.controller {
                                case 88:                                        return splitWay();                                              // 'X'
                                case 82:                                        repeatTags(firstSelected); return this; // 'R'
                                case 87:                                        return new SelectedWay(parentWay);              // 'W'
-                case 74:                    if (event.shiftKey) { return unjoin() };// 'J'
+                case 74:                    if (event.shiftKey) { return unjoin() }; return this;// 'J'
                                case Keyboard.BACKSPACE:        return deleteNode();
                                case Keyboard.DELETE:           return deleteNode();
                        }