mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Add Tools tab to keyboard shortcuts, add panels key shortcuts
This commit is contained in:
@@ -3172,6 +3172,7 @@ img.tile-removing {
|
||||
|
||||
.modal-shortcuts .modal-section:last-child {
|
||||
padding-top: 10px;
|
||||
min-height: 275px;
|
||||
}
|
||||
|
||||
.modal-shortcuts .tabs-bar {
|
||||
@@ -3206,6 +3207,11 @@ img.tile-removing {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.modal-shortcuts .shortcut-tab-tools .shortcut-column {
|
||||
flex: 1 1 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.modal-shortcuts td {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
+17
-9
@@ -274,6 +274,14 @@ en:
|
||||
truncated_list: "Edits by {users} and {count} others"
|
||||
info_panels:
|
||||
key: I
|
||||
background:
|
||||
key: B
|
||||
title: Background
|
||||
zoom: Zoom
|
||||
vintage: Vintage
|
||||
unknown: Unknown
|
||||
show_tiles: Show Tiles
|
||||
hide_tiles: Hide Tiles
|
||||
history:
|
||||
key: H
|
||||
title: History
|
||||
@@ -284,14 +292,6 @@ en:
|
||||
changeset: Changeset
|
||||
unknown: Unknown
|
||||
link_text: History on openstreetmap.org
|
||||
background:
|
||||
key: B
|
||||
title: Background
|
||||
zoom: Zoom
|
||||
vintage: Vintage
|
||||
unknown: Unknown
|
||||
show_tiles: Show Tiles
|
||||
hide_tiles: Hide Tiles
|
||||
location:
|
||||
key: L
|
||||
title: Location
|
||||
@@ -1101,7 +1101,6 @@ en:
|
||||
lasso: "Draw a selection lasso around features"
|
||||
with_selected:
|
||||
title: "With feature selected"
|
||||
info_panels: "Toggle information panels"
|
||||
edit_menu: "Toggle edit menu"
|
||||
vertex_selected:
|
||||
title: "With node selected"
|
||||
@@ -1141,3 +1140,12 @@ en:
|
||||
undo: "Undo last action"
|
||||
redo: "Redo last action"
|
||||
save: "Save changes"
|
||||
tools:
|
||||
title: "Tools"
|
||||
info:
|
||||
title: "Information"
|
||||
all: "Toggle all information panels"
|
||||
background: "Toggle background panel"
|
||||
history: "Toggle history panel"
|
||||
location: "Toggle location panel"
|
||||
measurement: "Toggle measurement panel"
|
||||
|
||||
+36
-4
@@ -93,9 +93,8 @@
|
||||
"shortcuts": ["Right-click", "shortcuts.key.space"],
|
||||
"text": "shortcuts.browsing.with_selected.edit_menu"
|
||||
}, {
|
||||
"modifiers": ["⌘"],
|
||||
"shortcuts": ["info_panels.key"],
|
||||
"text": "shortcuts.browsing.with_selected.info_panels"
|
||||
"shortcuts": [],
|
||||
"text": ""
|
||||
},
|
||||
|
||||
{
|
||||
@@ -166,7 +165,7 @@
|
||||
"shortcuts": ["Z"],
|
||||
"text": "shortcuts.editing.commands.undo"
|
||||
}, {
|
||||
"modifiers": ["⌘","⇧"],
|
||||
"modifiers": ["⌘", "⇧"],
|
||||
"shortcuts": ["Z"],
|
||||
"text": "shortcuts.editing.commands.redo"
|
||||
}, {
|
||||
@@ -221,5 +220,38 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}, {
|
||||
"tab": "tools",
|
||||
"text": "shortcuts.tools.title",
|
||||
"columns" : [
|
||||
{
|
||||
"rows": [
|
||||
{
|
||||
"section": "info",
|
||||
"text": "shortcuts.tools.info.title"
|
||||
}, {
|
||||
"modifiers": ["⌘"],
|
||||
"shortcuts": ["info_panels.key"],
|
||||
"text": "shortcuts.tools.info.all"
|
||||
}, {
|
||||
"modifiers": ["⌘", "⇧"],
|
||||
"shortcuts": ["info_panels.background.key"],
|
||||
"text": "shortcuts.tools.info.background"
|
||||
}, {
|
||||
"modifiers": ["⌘", "⇧"],
|
||||
"shortcuts": ["info_panels.history.key"],
|
||||
"text": "shortcuts.tools.info.history"
|
||||
}, {
|
||||
"modifiers": ["⌘", "⇧"],
|
||||
"shortcuts": ["info_panels.location.key"],
|
||||
"text": "shortcuts.tools.info.location"
|
||||
}, {
|
||||
"modifiers": ["⌘", "⇧"],
|
||||
"shortcuts": ["info_panels.measurement.key"],
|
||||
"text": "shortcuts.tools.info.measurement"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]}
|
||||
|
||||
Vendored
+20
-10
@@ -350,6 +350,15 @@
|
||||
},
|
||||
"info_panels": {
|
||||
"key": "I",
|
||||
"background": {
|
||||
"key": "B",
|
||||
"title": "Background",
|
||||
"zoom": "Zoom",
|
||||
"vintage": "Vintage",
|
||||
"unknown": "Unknown",
|
||||
"show_tiles": "Show Tiles",
|
||||
"hide_tiles": "Hide Tiles"
|
||||
},
|
||||
"history": {
|
||||
"key": "H",
|
||||
"title": "History",
|
||||
@@ -361,15 +370,6 @@
|
||||
"unknown": "Unknown",
|
||||
"link_text": "History on openstreetmap.org"
|
||||
},
|
||||
"background": {
|
||||
"key": "B",
|
||||
"title": "Background",
|
||||
"zoom": "Zoom",
|
||||
"vintage": "Vintage",
|
||||
"unknown": "Unknown",
|
||||
"show_tiles": "Show Tiles",
|
||||
"hide_tiles": "Hide Tiles"
|
||||
},
|
||||
"location": {
|
||||
"key": "L",
|
||||
"title": "Location",
|
||||
@@ -979,7 +979,6 @@
|
||||
},
|
||||
"with_selected": {
|
||||
"title": "With feature selected",
|
||||
"info_panels": "Toggle information panels",
|
||||
"edit_menu": "Toggle edit menu"
|
||||
},
|
||||
"vertex_selected": {
|
||||
@@ -1025,6 +1024,17 @@
|
||||
"redo": "Redo last action",
|
||||
"save": "Save changes"
|
||||
}
|
||||
},
|
||||
"tools": {
|
||||
"title": "Tools",
|
||||
"info": {
|
||||
"title": "Information",
|
||||
"all": "Toggle all information panels",
|
||||
"background": "Toggle background panel",
|
||||
"history": "Toggle history panel",
|
||||
"location": "Toggle location panel",
|
||||
"measurement": "Toggle measurement panel"
|
||||
}
|
||||
}
|
||||
},
|
||||
"presets": {
|
||||
|
||||
@@ -105,7 +105,7 @@ export function uiShortcuts() {
|
||||
var shortcutsEnter = shortcuts
|
||||
.enter()
|
||||
.append('div')
|
||||
.attr('class', 'shortcut-tab');
|
||||
.attr('class', function(d) { return 'shortcut-tab shortcut-tab-' + d.tab; });
|
||||
|
||||
var columnsEnter = shortcutsEnter
|
||||
.selectAll('.shortcut-column')
|
||||
|
||||
Reference in New Issue
Block a user