Merge pull request #1437 from umap-project/kbd
Mention more keyboard shortcuts
This commit is contained in:
commit
1e419fc692
2 changed files with 8 additions and 8 deletions
|
@ -84,7 +84,7 @@ L.U.DrawMarkerAction = L.U.BaseAction.extend({
|
||||||
options: {
|
options: {
|
||||||
helpMenu: true,
|
helpMenu: true,
|
||||||
className: 'umap-draw-marker dark',
|
className: 'umap-draw-marker dark',
|
||||||
tooltip: L._('Draw a marker'),
|
tooltip: `${L._('Draw a marker')} (Ctrl+M)`,
|
||||||
},
|
},
|
||||||
|
|
||||||
addHooks: function () {
|
addHooks: function () {
|
||||||
|
@ -96,7 +96,7 @@ L.U.DrawPolylineAction = L.U.BaseAction.extend({
|
||||||
options: {
|
options: {
|
||||||
helpMenu: true,
|
helpMenu: true,
|
||||||
className: 'umap-draw-polyline dark',
|
className: 'umap-draw-polyline dark',
|
||||||
tooltip: L._('Draw a polyline'),
|
tooltip: `${L._('Draw a polyline')} (Ctrl+L)`,
|
||||||
},
|
},
|
||||||
|
|
||||||
addHooks: function () {
|
addHooks: function () {
|
||||||
|
@ -108,7 +108,7 @@ L.U.DrawPolygonAction = L.U.BaseAction.extend({
|
||||||
options: {
|
options: {
|
||||||
helpMenu: true,
|
helpMenu: true,
|
||||||
className: 'umap-draw-polygon dark',
|
className: 'umap-draw-polygon dark',
|
||||||
tooltip: L._('Draw a polygon'),
|
tooltip: `${L._('Draw a polygone')} (Ctrl+P)`,
|
||||||
},
|
},
|
||||||
|
|
||||||
addHooks: function () {
|
addHooks: function () {
|
||||||
|
|
|
@ -1881,27 +1881,27 @@ L.U.Map.include({
|
||||||
if (this.editEnabled) {
|
if (this.editEnabled) {
|
||||||
if (!this.isDirty) {
|
if (!this.isDirty) {
|
||||||
items.push({
|
items.push({
|
||||||
text: `${L._('Stop editing')} (Ctrl+E)`,
|
text: `${L._('Stop editing')} (<kbd>Ctrl+E</kbd>)`,
|
||||||
callback: this.disableEdit,
|
callback: this.disableEdit,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.options.enableMarkerDraw) {
|
if (this.options.enableMarkerDraw) {
|
||||||
items.push({
|
items.push({
|
||||||
text: `${L._('Draw a marker')} (Ctrl+M)`,
|
text: `${L._('Draw a marker')} (<kbd>Ctrl+M</kbd>)`,
|
||||||
callback: this.startMarker,
|
callback: this.startMarker,
|
||||||
context: this,
|
context: this,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.options.enablePolylineDraw) {
|
if (this.options.enablePolylineDraw) {
|
||||||
items.push({
|
items.push({
|
||||||
text: `${L._('Draw a polygon')} (Ctrl+P)`,
|
text: `${L._('Draw a polygon')} (<kbd>Ctrl+P</kbd>)`,
|
||||||
callback: this.startPolygon,
|
callback: this.startPolygon,
|
||||||
context: this,
|
context: this,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.options.enablePolygonDraw) {
|
if (this.options.enablePolygonDraw) {
|
||||||
items.push({
|
items.push({
|
||||||
text: `${L._('Draw a line')} (Ctrl+L)`,
|
text: `${L._('Draw a line')} (<kbd>Ctrl+L</kbd>)`,
|
||||||
callback: this.startPolyline,
|
callback: this.startPolyline,
|
||||||
context: this,
|
context: this,
|
||||||
})
|
})
|
||||||
|
@ -1915,7 +1915,7 @@ L.U.Map.include({
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
items.push({
|
items.push({
|
||||||
text: `${L._('Start editing')} (Ctrl+E)`,
|
text: `${L._('Start editing')} (<kbd>Ctrl+E</kbd>)`,
|
||||||
callback: this.enableEdit,
|
callback: this.enableEdit,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue