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

see #11924 - fix remaining warnings about extended modifiers

File:
1 edited

Legend:

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

    r12519 r12520  
    254254     */
    255255    public String getKeyText() {
    256         KeyStroke keyStroke = getKeyStroke();
     256        return getKeyText(getKeyStroke());
     257    }
     258
     259    /**
     260     * Returns a human readable text for the key stroke.
     261     * @param keyStroke key stroke to convert to human readable text
     262     * @return a human readable text for the key stroke
     263     * @since 12520
     264     */
     265    public static String getKeyText(KeyStroke keyStroke) {
    257266        if (keyStroke == null) return "";
    258267        String modifText = KeyEvent.getModifiersExText(keyStroke.getModifiers());
Note: See TracChangeset for help on using the changeset viewer.