Changeset 12519 in josm for trunk/src/org


Ignore:
Timestamp:
2017-07-26T23:45:33+02:00 (7 years ago)
Author:
Don-vip
Message:

see #11924 - fix 2 more warnings about extended modifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Shortcut.java

    r12279 r12519  
    206206    public boolean isEvent(KeyEvent e) {
    207207        KeyStroke ks = getKeyStroke();
    208         return ks != null && ks.equals(KeyStroke.getKeyStroke(e.getKeyCode(), e.getModifiers()));
     208        return ks != null && ks.equals(KeyStroke.getKeyStroke(e.getKeyCode(), e.getModifiersEx()));
    209209    }
    210210
     
    256256        KeyStroke keyStroke = getKeyStroke();
    257257        if (keyStroke == null) return "";
    258         String modifText = KeyEvent.getKeyModifiersText(keyStroke.getModifiers());
     258        String modifText = KeyEvent.getModifiersExText(keyStroke.getModifiers());
    259259        if ("".equals(modifText)) return KeyEvent.getKeyText(keyStroke.getKeyCode());
    260260        return modifText + '+' + KeyEvent.getKeyText(keyStroke.getKeyCode());
Note: See TracChangeset for help on using the changeset viewer.