Changeset 30773 in osm for applications


Ignore:
Timestamp:
2014-10-28T21:33:34+01:00 (10 years ago)
Author:
stoecker
Message:

fix shortcut handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java

    r30737 r30773  
    44
    55import java.awt.Cursor;
    6 //import java.awt.event.KeyEvent;
     6import java.awt.event.KeyEvent;
    77import java.awt.event.MouseAdapter;
    88import java.awt.event.MouseEvent;
     
    2020import org.openstreetmap.josm.gui.layer.Layer;
    2121import org.openstreetmap.josm.gui.layer.geoimage.GeoImageLayer;
    22 //import org.openstreetmap.josm.tools.Shortcut;
     22import org.openstreetmap.josm.tools.Shortcut;
    2323
    2424/**
     
    4444              tr("Move and position photos"),
    4545              // It is almost impossible to find an unused shortcut.
    46               //Shortcut.registerShortcut("mapmode:photoadjust",
    47               //                          tr("Mode: {0}", tr("Adjust photos")),
    48               //                          KeyEvent.VK_P,
    49               //                          Shortcut.DIRECT),
     46              Shortcut.registerShortcut("mapmode:photoadjust",
     47                                        tr("Mode: {0}", tr("Adjust photos")),
     48                                        KeyEvent.CHAR_UNDEFINED,
     49                                        Shortcut.NONE),
    5050              mapFrame, Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    5151        GeoImageLayer.registerSupportedMapMode(this);
Note: See TracChangeset for help on using the changeset viewer.