Ignore:
Timestamp:
2006-12-29T16:57:07+01:00 (17 years ago)
Author:
imi
Message:
  • fixed display of tooltip shortcuts
  • added icon=... to annotation presets
  • added support for putting annotation presets in the toolbar
File:
1 edited

Legend:

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

    r113 r178  
    99        public static String name(int shortCut, int modifiers) {
    1010                String s = "";
    11                 if ((modifiers & KeyEvent.CTRL_MASK) != 0)
     11                if ((modifiers & KeyEvent.CTRL_MASK) != 0 || (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0)
    1212                        s += tr("Ctrl-");
    13                 if ((modifiers & KeyEvent.ALT_MASK) != 0)
     13                if ((modifiers & KeyEvent.ALT_MASK) != 0 || (modifiers & KeyEvent.ALT_DOWN_MASK) != 0)
    1414                        s += tr("Alt-");
    15                 if ((modifiers & KeyEvent.ALT_GRAPH_MASK) != 0)
     15                if ((modifiers & KeyEvent.ALT_GRAPH_MASK) != 0 || (modifiers & KeyEvent.ALT_GRAPH_DOWN_MASK) != 0)
    1616                        s += tr("AltGr-");
    17                 if ((modifiers & KeyEvent.SHIFT_MASK) != 0)
     17                if ((modifiers & KeyEvent.SHIFT_MASK) != 0 || (modifiers & KeyEvent.SHIFT_DOWN_MASK) != 0)
    1818                        s += tr("Shift-");
    1919                if (shortCut >= KeyEvent.VK_F1 && shortCut <= KeyEvent.VK_F12)
Note: See TracChangeset for help on using the changeset viewer.