Changeset 14012 in josm for trunk/src/org/openstreetmap/josm/actions/ReorderImageryLayersAction.java
- Timestamp:
- 2018-07-08T00:27:14+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ReorderImageryLayersAction.java
r13891 r14012 5 5 6 6 import java.awt.event.ActionEvent; 7 import java.awt.event.KeyEvent;8 7 import java.util.List; 9 8 import java.util.stream.Collectors; 10 9 import java.util.stream.Stream; 11 10 12 import org.openstreetmap.josm.gui.MainApplication;13 11 import org.openstreetmap.josm.gui.layer.ImageryLayer; 12 import org.openstreetmap.josm.tools.KeyboardUtils; 14 13 import org.openstreetmap.josm.tools.Shortcut; 15 14 … … 20 19 public class ReorderImageryLayersAction extends JosmAction { 21 20 22 private static final int VK_SQUARE = 0x10000b2;23 24 21 /** 25 22 * Constructs a new {@code ReorderImageryLayersAction}. … … 28 25 // TODO: find a suitable icon 29 26 super(tr("Reorder imagery layers"), "dialogs/layerlist", tr("Reorders non-overlay imagery layers."), 30 Shortcut.registerShortcut("imagery:reorder", tr("Reorder imagery layers"), KeyEvent.VK_DEAD_TILDE, Shortcut.DIRECT), true); 31 // On AZERTY keyboard layour the key displays the character '²' 32 MainApplication.registerActionShortcut(this, 33 Shortcut.registerShortcut("imagery:reorderbis", tr("Reorder imagery layers"), VK_SQUARE, Shortcut.DIRECT)); 27 Shortcut.registerMultiShortcuts("imagery:reorder", tr("Reorder imagery layers"), 28 KeyboardUtils.getCharactersForKey('E', 0), Shortcut.DIRECT)); 34 29 } 35 30
Note:
See TracChangeset
for help on using the changeset viewer.