Ticket #19296: 19296.patch

File 19296.patch, 5.1 KB (added by GerdP, 5 years ago)

work in progress patch, probably more actions can be changed

  • src/org/openstreetmap/josm/actions/AboutAction.java

     
    6363    public AboutAction() {
    6464        super(tr("About"), "logo", tr("Display the about screen."),
    6565            Shortcut.registerShortcut("system:about", tr("About"),
    66             KeyEvent.VK_F1, Shortcut.SHIFT), true);
     66            KeyEvent.VK_F1, Shortcut.SHIFT), true, false);
    6767    }
    6868
    6969    JPanel buildAboutPanel() {
  • src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java

     
    3333     */
    3434    public DownloadPrimitiveAction() {
    3535        super(tr("Download object..."), "downloadprimitive", tr("Download OSM object by ID"),
    36                 SHORTCUT, true);
     36                SHORTCUT, true, false);
    3737        setHelpId(ht("/Action/DownloadObject"));
    3838    }
    3939
  • src/org/openstreetmap/josm/actions/HistoryInfoAction.java

     
    3333        super(tr("History"), "dialogs/history",
    3434                tr("Display history information about OSM ways, nodes, or relations."),
    3535                Shortcut.registerShortcut("core:historyinfo",
    36                         tr("History"), KeyEvent.VK_H, Shortcut.CTRL), false);
     36                        tr("History"), KeyEvent.VK_H, Shortcut.CTRL), true, "action/historyinfo", false);
    3737        setHelpId(ht("/Action/ObjectHistory"));
    38         setToolbarId("action/historyinfo");
    39         MainApplication.getToolbar().register(this);
    4038        setEnabled(true);
    4139    }
    4240
  • src/org/openstreetmap/josm/actions/NewAction.java

     
    2222     */
    2323    public NewAction() {
    2424        super(tr("New Layer"), "new", tr("Create a new map layer."),
    25                 Shortcut.registerShortcut("system:new", tr("File: {0}", tr("New Layer")), KeyEvent.VK_N, Shortcut.CTRL), true);
     25                Shortcut.registerShortcut("system:new", tr("File: {0}", tr("New Layer")), KeyEvent.VK_N, Shortcut.CTRL), true, false);
    2626        setHelpId(ht("/Action/NewLayer"));
    2727    }
    2828
  • src/org/openstreetmap/josm/actions/OpenFileAction.java

     
    6666     */
    6767    public OpenFileAction() {
    6868        super(tr("Open..."), "open", tr("Open a file."),
    69                 Shortcut.registerShortcut("system:open", tr("File: {0}", tr("Open...")), KeyEvent.VK_O, Shortcut.CTRL));
     69                Shortcut.registerShortcut("system:open", tr("File: {0}", tr("Open...")), KeyEvent.VK_O, Shortcut.CTRL),
     70                true, null, false);
    7071        setHelpId(ht("/Action/Open"));
    7172    }
    7273
  • src/org/openstreetmap/josm/actions/OpenLocationAction.java

     
    8686        /* I18N: Command to download a specific location/URL */
    8787        super(tr("Open Location..."), "openlocation", tr("Open an URL."),
    8888                Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")),
    89                         KeyEvent.VK_L, Shortcut.CTRL), true);
     89                        KeyEvent.VK_L, Shortcut.CTRL), true, false);
    9090        setHelpId(ht("/Action/OpenLocation"));
    9191        this.downloadTasks = new ArrayList<>();
    9292        addDownloadTaskClass(DownloadOsmTask.class);
  • src/org/openstreetmap/josm/actions/PreferencesAction.java

     
    8787     */
    8888    public PreferencesAction() {
    8989        super(tr("Preferences..."), "preference", tr("Open a preferences dialog for global settings."),
    90                 Shortcut.registerShortcut("system:preferences", tr("Preferences"), KeyEvent.VK_F12, Shortcut.DIRECT), true);
     90                Shortcut.registerShortcut("system:preferences", tr("Preferences"), KeyEvent.VK_F12, Shortcut.DIRECT), true, false);
    9191        setHelpId(ht("/Action/Preferences"));
    9292        this.tab = null;
    9393        this.subTab = null;