- Timestamp:
- 2016-01-02T23:59:54+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r9266 r9271 708 708 // Create action for reusing the tag, with keyboard shortcut 709 709 /* POSSIBLE SHORTCUTS: 1,2,3,4,5,6,7,8,9,0=10 */ 710 final Shortcut sc = count > 10 ? null : Shortcut.registerShortcut( 711 "properties:recent:" + count, tr("Choose recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL); 712 final JosmAction action = new JosmAction(tr("Choose recent tag {0}", count), null, tr("Use this tag again"), sc, false) { 710 final Shortcut sc = count > 10 ? null : Shortcut.registerShortcut("properties:recent:" + count, 711 tr("Choose recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL); 712 final JosmAction action = new JosmAction( 713 tr("Choose recent tag {0}", count), null, tr("Use this tag again"), sc, false) { 713 714 @Override 714 715 public void actionPerformed(ActionEvent e) { … … 721 722 }; 722 723 /* POSSIBLE SHORTCUTS: 1,2,3,4,5,6,7,8,9,0=10 */ 723 final Shortcut scShift = count > 10 ? null : Shortcut.registerShortcut( 724 "properties:recent:apply:" + count, tr("Apply recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL_SHIFT); 725 final JosmAction actionShift = new JosmAction(tr("Apply recent tag {0}", count), null, tr("Use this tag again"), scShift, false) { 724 final Shortcut scShift = count > 10 ? null : Shortcut.registerShortcut("properties:recent:apply:" + count, 725 tr("Apply recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL_SHIFT); 726 final JosmAction actionShift = new JosmAction( 727 tr("Apply recent tag {0}", count), null, tr("Use this tag again"), scShift, false) { 726 728 @Override 727 729 public void actionPerformed(ActionEvent e) {
Note:
See TracChangeset
for help on using the changeset viewer.