Ignore:
Timestamp:
2018-07-08T00:27:14+02:00 (3 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/JosmAction.java

    r13925 r14012  
    77import java.awt.event.KeyEvent;
    88import java.util.Collection;
     9import java.util.List;
    910import java.util.concurrent.CancellationException;
    1011import java.util.concurrent.ExecutionException;
     
    186187
    187188    /**
     189     * Constructs a new {@code JosmAction}.
     190     *
     191     * Use this super constructor to setup your action.
     192     *
     193     * @param name the action's text as displayed on the menu (if it is added to a menu)
     194     * @param iconName the filename of the icon to use
     195     * @param tooltip  a longer description of the action that will be displayed in the tooltip. Please note
     196     *           that html is not supported for menu actions on some platforms.
     197     * @param shortcuts ready-created shortcut objects
     198     * @since 14012
     199     */
     200    public JosmAction(String name, String iconName, String tooltip, List<Shortcut> shortcuts) {
     201        this(name, iconName, tooltip, shortcuts.get(0), true, null, true);
     202        for (int i = 1; i < shortcuts.size(); i++) {
     203            MainApplication.registerActionShortcut(this, shortcuts.get(i));
     204        }
     205    }
     206
     207    /**
    188208     * Installs the listeners to this action.
    189209     * <p>
Note: See TracChangeset for help on using the changeset viewer.