Ignore:
Timestamp:
2010-01-10T15:46:08+01:00 (15 years ago)
Author:
pieren
Message:

Various minor improvements. More bboxes data in the cache. New cache format v3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSAdjustAction.java

    r18544 r19371  
    55
    66import java.awt.Cursor;
     7import java.awt.Toolkit;
    78import java.awt.event.ActionEvent;
    89import java.awt.event.MouseEvent;
     
    8788        if (e.getButton() != MouseEvent.BUTTON1)
    8889            return;
    89         boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;
     90        boolean ctrl = (e.getModifiers() & Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) != 0;
    9091        // boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;
    9192        boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0;
    92         if (shift)
     93        if (shift && !ctrl)
    9394            mode = Mode.moveZ;
    94         else if (ctrl)
     95        else if (shift && ctrl)
    9596            mode = Mode.rotate;
    9697        else
Note: See TracChangeset for help on using the changeset viewer.