Ignore:
Timestamp:
2017-07-23T23:59:49+02:00 (2 years ago)
Author:
Don-vip
Message:

see #11924 - fix one deprecation warning for InputEvent.ALT_GRAPH_MASK

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

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

    r10409 r12504  
    3232        if (!isEnabled() || !Main.map.mapView.isActiveLayerVisible())
    3333            return;
    34         org.openstreetmap.josm.actions.mapmode.DeleteAction.doActionPerformed(e);
     34        Main.map.mapModeDelete.doActionPerformed(e);
    3535    }
    3636
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r11978 r12504  
    66import java.awt.Cursor;
    77import java.awt.event.ActionEvent;
    8 import java.awt.event.InputEvent;
    98import java.awt.event.KeyEvent;
    109import java.awt.event.MouseEvent;
     
    136135     * @param e Action event
    137136     */
    138     public static void doActionPerformed(ActionEvent e) {
     137    public void doActionPerformed(ActionEvent e) {
    139138        MainLayerManager lm = Main.getLayerManager();
    140139        OsmDataLayer editLayer = lm.getEditLayer();
     
    143142        }
    144143
    145         boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;
    146         boolean alt = (e.getModifiers() & (ActionEvent.ALT_MASK | InputEvent.ALT_GRAPH_MASK)) != 0;
     144        updateKeyModifiers(e.getModifiers());
    147145
    148146        Command c;
Note: See TracChangeset for help on using the changeset viewer.