- Timestamp:
- 2017-07-26T23:45:33+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r12279 r12519 206 206 public boolean isEvent(KeyEvent e) { 207 207 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())); 209 209 } 210 210 … … 256 256 KeyStroke keyStroke = getKeyStroke(); 257 257 if (keyStroke == null) return ""; 258 String modifText = KeyEvent.get KeyModifiersText(keyStroke.getModifiers());258 String modifText = KeyEvent.getModifiersExText(keyStroke.getModifiers()); 259 259 if ("".equals(modifText)) return KeyEvent.getKeyText(keyStroke.getKeyCode()); 260 260 return modifText + '+' + KeyEvent.getKeyText(keyStroke.getKeyCode());
Note:
See TracChangeset
for help on using the changeset viewer.