Changeset 8720 in josm for trunk/src/org/openstreetmap/josm/tools/Shortcut.java
- Timestamp:
- 2015-09-02T23:11:47+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r8510 r8720 17 17 import javax.swing.JMenu; 18 18 import javax.swing.KeyStroke; 19 import javax.swing.text.JTextComponent; 19 20 20 21 import org.openstreetmap.josm.Main; … … 215 216 } 216 217 /** 218 * Sets the mnemonic key on a text component. 219 */ 220 public void setFocusAccelerator(JTextComponent component) { 221 if (assignedModifier == getGroupModifier(MNEMONIC) && getKeyStroke() != null && KeyEvent.getKeyText(assignedKey).length() == 1) { 222 component.setFocusAccelerator(KeyEvent.getKeyText(assignedKey).charAt(0)); 223 } 224 } 225 /** 217 226 * use this to set a actions's accelerator 218 227 */
Note:
See TracChangeset
for help on using the changeset viewer.