Changeset 1421 in josm


Ignore:
Timestamp:
Feb 17, 2009 4:55:14 PM (4 years ago)
Author:
stoecker
Message:

close #2196 again. Patch by xeen

File:
1 edited

Legend:

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

    r1418 r1421  
    296296        // boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0; 
    297297        boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; 
     298         
     299        // We don't want to change to draw tool if the user tries to (de)select 
     300        // stuff but accidentally clicks in an empty area when selection is empty 
     301        if(shift || ctrl) 
     302            cancelDrawMode = true; 
    298303 
    299304        mouseDownTime = System.currentTimeMillis(); 
Note: See TracChangeset for help on using the changeset viewer.