﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
19836	Add keyboard shortcut for DownloadOsmInViewAction	kebisi	team	"Dear developers,

I would like to have a keyboard shortcut for https://josm.openstreetmap.de/wiki/Help/Action/DownloadOsmInView which has currently has none.

So I've tried to identify the right field

{{{
tr(""Download in current view""),
""download_in_view"",
tr(""Download map data from the OSM server in current view""),
null, → shortcut
false,
""dialogs/download_in_view"",
true);
}}}

and changed DownloadOsmInViewAction.java to

{{{
public final class DownloadOsmInViewAction extends JosmAction {

    /**
     * Creates a new {@code DownloadOsmInViewAction}.
     */
    public DownloadOsmInViewAction() {
        super(tr(""Download in current view""), ""download_in_view"", tr(""Download map data from the OSM server in current view""),
                Shortcut.registerShortcut(""file:download_currview"", tr(""File: {0}"", tr(""Download currview"")),
                    KeyEvent.VK_C, Shortcut.ALT),
                false, ""dialogs/download_in_view"", true);
    }
}}}

but this fails due to missing symbols.

What's the right way to add a shortcut key?"	enhancement	closed	normal	20.09	Core	latest	fixed		
