Changeset 5260 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-06-01T11:26:25+02:00 (12 years ago)
Author:
bastiK
Message:

bugfix: Alt Gr not working as expected on Unity / Ubuntu 11.10 64bit in ImproveWayAccuracyAction

File:
1 edited

Legend:

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

    r4982 r5260  
    1313import java.awt.Toolkit;
    1414import java.awt.event.AWTEventListener;
    15 import java.awt.event.ActionEvent;
    1615import java.awt.event.InputEvent;
    1716import java.awt.event.KeyEvent;
     
    8281    final private Cursor cursorImproveLock;
    8382
    84     private boolean shift = false;
    85     private boolean ctrl = false;
    86     private boolean alt = false;
    87 
    8883    private final Color guideColor;
    8984    private final BasicStroke selectTargetWayStroke;
     
    510505    // -------------------------------------------------------------------------
    511506    /**
    512      * Updates shift and ctrl key states
    513      */
    514     @Override
    515     protected void updateKeyModifiers(InputEvent e) {
    516         ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;
    517         shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0;
    518         // accept either Alt key (including AltGr)
    519         alt = ((e.getModifiers() & (ActionEvent.ALT_MASK | InputEvent.ALT_GRAPH_MASK)) != 0);
    520     }
    521 
    522     /**
    523507     * Sets new cursor depending on state, mouse position
    524508     */
Note: See TracChangeset for help on using the changeset viewer.