Changeset 15644 in josm


Ignore:
Timestamp:
2020-01-05T23:29:48+01:00 (3 months ago)
Author:
Don-vip
Message:

fix #18091 - reuse Help shortcut inside tag/membership dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/HelpAction.java

    r15581 r15644  
    55
    66import java.awt.event.ActionEvent;
    7 import java.awt.event.KeyEvent;
    87import java.io.IOException;
    98import java.util.ArrayList;
     
    4342
    4443    /**
    45      * Returns the keystroke launching this action (F1).
     44     * Returns the keystroke launching this action (F1 by default).
    4645     * @return the keystroke launching this action
    4746     */
    4847    public static KeyStroke getKeyStroke() {
    49         return KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0);
     48        return MainApplication.getMenu().help.getShortcut().getKeyStroke();
    5049    }
    5150
Note: See TracChangeset for help on using the changeset viewer.