Ignore:
Timestamp:
2018-07-08T00:27:14+02:00 (5 months ago)
Author:
Don-vip
Message:

see #16453 - proper support of different keyboard layouts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ReorderImageryLayersAction.java

    r13891 r14012  
    55
    66import java.awt.event.ActionEvent;
    7 import java.awt.event.KeyEvent;
    87import java.util.List;
    98import java.util.stream.Collectors;
    109import java.util.stream.Stream;
    1110
    12 import org.openstreetmap.josm.gui.MainApplication;
    1311import org.openstreetmap.josm.gui.layer.ImageryLayer;
     12import org.openstreetmap.josm.tools.KeyboardUtils;
    1413import org.openstreetmap.josm.tools.Shortcut;
    1514
     
    2019public class ReorderImageryLayersAction extends JosmAction {
    2120
    22     private static final int VK_SQUARE = 0x10000b2;
    23 
    2421    /**
    2522     * Constructs a new {@code ReorderImageryLayersAction}.
     
    2825        // TODO: find a suitable icon
    2926        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));
    3429    }
    3530
Note: See TracChangeset for help on using the changeset viewer.