Changeset 178 in josm for src/org/openstreetmap/josm/tools/ShortCutLabel.java
- Timestamp:
- 2006-12-29T16:57:07+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/tools/ShortCutLabel.java
r113 r178 9 9 public static String name(int shortCut, int modifiers) { 10 10 String s = ""; 11 if ((modifiers & KeyEvent.CTRL_MASK) != 0 )11 if ((modifiers & KeyEvent.CTRL_MASK) != 0 || (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0) 12 12 s += tr("Ctrl-"); 13 if ((modifiers & KeyEvent.ALT_MASK) != 0 )13 if ((modifiers & KeyEvent.ALT_MASK) != 0 || (modifiers & KeyEvent.ALT_DOWN_MASK) != 0) 14 14 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) 16 16 s += tr("AltGr-"); 17 if ((modifiers & KeyEvent.SHIFT_MASK) != 0 )17 if ((modifiers & KeyEvent.SHIFT_MASK) != 0 || (modifiers & KeyEvent.SHIFT_DOWN_MASK) != 0) 18 18 s += tr("Shift-"); 19 19 if (shortCut >= KeyEvent.VK_F1 && shortCut <= KeyEvent.VK_F12)
Note:
See TracChangeset
for help on using the changeset viewer.