Changeset 375 in josm


Ignore:
Timestamp:
13.10.2007 15:17:34 (4 years ago)
Author:
framm
Message:
  • in draw mode, use alt modifier to start new way instead of continuing an existing way.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r373 r375  
    128128                } 
    129129                boolean extendedWay = false; 
     130                // shift modifier never connects, just makes new node 
    130131                if (!shift && selection.size() == 1 && selection.iterator().next() instanceof Node) { 
    131132                        Node n0 = (Node) selection.iterator().next(); 
    132133 
    133                         Way way = getWayForNode(n0); 
     134                        // alt modifier makes connection to selected node but not existing way 
     135                        Way way = alt ? null : getWayForNode(n0); 
    134136                        if (way == null) { 
    135137                                way = new Way(); 
     
    215217         
    216218        @Override public String getModeHelpText() { 
    217                 return "Click to add a new node. Ctrl to disable node re-use/auto-insert. Shift to disable auto-connect."; 
     219                return "Click to add a new node. Ctrl: no node re-use/auto-insert. Shift: no auto-connect. Alt: new way"; 
    218220        } 
    219221} 
Note: See TracChangeset for help on using the changeset viewer.