Adding tabs to shortcuts

This commit is contained in:
Kushan Joshi
2017-02-09 22:32:40 +05:30
committed by Bryan Housel
parent 5e8ad595b0
commit 8d2e2c7f9f
5 changed files with 227 additions and 80 deletions
+22 -24
View File
@@ -1016,29 +1016,27 @@ en:
help: "You're now ready to edit OpenStreetMap!{br}You can replay this walkthrough anytime or view more documentation by clicking the {button} Help button."
save: "Don't forget to regularly save your changes!"
start: "Start mapping!"
shortcuts:
shortcuts:
display:
desc: "Changing the display"
shortcuts:
pan_map: "Pan map"
pan_map_screen: "Pan map by one screenful"
zoom: "Zoom in / Zoom out"
zoom_large: "Zoom in / Zoom out by a lot"
bg_switcher: "Display background layer switcher"
bg: "Switch between previous and current backgrounds"
wireframe: "Toggle wireframe mode"
help: "Show in-editor help/documentation"
minimap: "Toggle minimap"
infobox: "Toggle info/measurements box"
radial_menu: "Toggle radial menu for currently selected object"
desc: "Display"
pan_map: "Pan map"
pan_map_screen: "Pan map by one screenful"
zoom: "Zoom in / Zoom out"
zoom_large: "Zoom in / Zoom out by a lot"
bg_switcher: "Display background layer switcher"
bg: "Switch between backgrounds"
wireframe: "Toggle wireframe mode"
help: "Show in-editor help/documentation"
minimap: "Toggle minimap"
infobox: "Toggle info/measurements box"
radial_menu: "Toggle radial menu for selected object"
edit:
desc: "Editing mode"
shortcuts:
add_point: "Switch to 'add point' mode"
add_line: "Switch to 'add line' mode"
add_area: "Switch to 'add area' mode"
continue_line: "Continue drawing a line at the selected node"
stop_line: "Stop drawing of a line or area"
undo: "Undo last action"
redo: "Redo last action"
save: "Save changes"
desc: "Editing"
add_point: "Switch to 'add point' mode"
add_line: "Switch to 'add line' mode"
add_area: "Switch to 'add area' mode"
continue_line: "Continue drawing a line at the selected node"
stop_line: "Stop drawing of a line or area"
undo: "Undo last action"
redo: "Redo last action"
save: "Save changes"
+1 -1
View File
@@ -6,7 +6,7 @@ export { dataDeprecated } from './deprecated.json';
export { dataDiscarded } from './discarded.json';
export { dataLocales } from './locales.json';
export { dataPhoneFormats } from './phone-formats.json';
export { dataShortcuts } from './shortcuts.json';
export { shortcuts } from './shortcuts.json';
export { default as dataImperial } from './imperial.json';
export { default as dataDriveLeft } from './drive-left.json';
+24 -24
View File
@@ -1,7 +1,7 @@
[
{ "shortcuts": [
{
"key": "display",
"desc": "Changing the display",
"desc": "shortcuts.display.desc",
"shortcuts": [
{
"shortcut": [
@@ -10,7 +10,7 @@
"←",
"→"
],
"key": "pan_map"
"key": "shortcuts.display.pan_map"
},
{
"shortcut": [
@@ -19,119 +19,119 @@
"⇧←",
"⇧→"
],
"key": "pan_map_screen"
"key": "shortcuts.display.pan_map_screen"
},
{
"shortcut": [
"+",
"-"
],
"key": "zoom"
"key": "shortcuts.display.zoom"
},
{
"shortcut": [
"⌘+",
"⌘-"
],
"key": "zoom_large"
"key": "shortcuts.display.zoom_large"
},
{
"shortcut": [
"B"
],
"key": "bg_switcher"
"key": "shortcuts.display.bg_switcher"
},
{
"shortcut": [
"⌘B"
],
"key": "bg"
"key": "shortcuts.display.bg"
},
{
"shortcut": [
"W"
],
"key": "wireframe"
"key": "shortcuts.display.wireframe"
},
{
"shortcut": [
"H"
],
"key": "help"
"key": "shortcuts.display.help"
},
{
"shortcut": [
"/"
],
"key": "minimap"
"key": "shortcuts.display.minimap"
},
{
"shortcut": [
"⌘I"
],
"key": "infobox"
"key": "shortcuts.display.infobox"
},
{
"shortcut": [
"Spacebar"
"Space"
],
"key": "radial_menu"
"key": "shortcuts.display.radial_menu"
}
]
},
{
"key": "edit",
"desc": "Editing mode",
"desc": "shortcuts.edit.desc",
"shortcuts": [
{
"shortcut": [
"1"
],
"key": "add_point"
"key": "shortcuts.edit.add_point"
},
{
"shortcut": [
"2"
],
"desc": "add_line"
"key": "shortcuts.edit.add_line"
},
{
"shortcut": [
"3"
],
"key": "add_area"
"key": "shortcuts.edit.add_area"
},
{
"shortcut": [
"A"
],
"key": "continue_line"
"key": "shortcuts.edit.continue_line"
},
{
"shortcut": [
"↵ Enter",
"Esc"
],
"key": "stop_line"
"key": "shortcuts.edit.stop_line"
},
{
"shortcut": [
"⌘Z"
],
"key": "undo"
"key": "shortcuts.edit.undo"
},
{
"shortcut": [
"⌘⇧Z"
],
"key": "redo"
"key": "shortcuts.edit.redo"
},
{
"shortcut": [
"⌘S"
],
"save": "save"
"key": "shortcuts.edit.save"
}
]
}
]
]}