Skip to content

Commit a04618b

Browse files
committed
allow parsing shortcut
1 parent 8aedd41 commit a04618b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/main/java/org/openstreetmap/josm/plugins/mapillary/actions/MapObjectLayerAction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public class MapObjectLayerAction extends JosmAction {
2222

2323
public MapObjectLayerAction() {
2424
super(
25-
I18n.tr(ACTION_NAME), MapillaryPlugin.LOGO.setSize(ImageSizes.DEFAULT), I18n.tr(DESCRIPTION), Shortcut
26-
.registerShortcut("mapillary:trafficSignLayer", ACTION_NAME, KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
25+
I18n.tr(ACTION_NAME), MapillaryPlugin.LOGO.setSize(ImageSizes.DEFAULT), I18n.tr(DESCRIPTION),
26+
Shortcut.registerShortcut("mapillary:trafficSignLayer", ACTION_NAME, KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
2727
false, "mapillary:trafficSignLayer", true);
2828
}
2929

Diff for: src/main/java/org/openstreetmap/josm/plugins/mapillary/actions/MapPointObjectLayerAction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public class MapPointObjectLayerAction extends JosmAction {
2727
"Displays the layer displaying the map point objects detected by Mapillary");
2828

2929
public MapPointObjectLayerAction() {
30-
super(tr(ACTION_NAME), MapillaryPlugin.LOGO.setSize(ImageSizes.DEFAULT), tr(TOOLTIP), Shortcut
31-
.registerShortcut("mapillary:pointFeaturesLayer", tr(ACTION_NAME), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
30+
super(tr(ACTION_NAME), MapillaryPlugin.LOGO.setSize(ImageSizes.DEFAULT), tr(TOOLTIP),
31+
Shortcut.registerShortcut("mapillary:pointFeaturesLayer", tr(ACTION_NAME), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
3232
false, "mapillary:pointFeaturesLayer", true);
3333
}
3434

0 commit comments

Comments
 (0)