Normalize keyboard shortcuts
This commit is contained in:
parent
bab49715a3
commit
c0b7d13cfb
3 changed files with 8 additions and 8 deletions
|
@ -200,7 +200,7 @@ L.U.ToggleEditAction = L.U.BaseFeatureAction.extend({
|
||||||
options: {
|
options: {
|
||||||
toolbarIcon: {
|
toolbarIcon: {
|
||||||
className: 'umap-toggle-edit',
|
className: 'umap-toggle-edit',
|
||||||
tooltip: L._('Toggle edit mode (shift-click)')
|
tooltip: L._('Toggle edit mode (Shift+Click)')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ L.U.DeleteVertexAction = L.U.BaseVertexAction.extend({
|
||||||
options: {
|
options: {
|
||||||
toolbarIcon: {
|
toolbarIcon: {
|
||||||
className: 'umap-delete-vertex',
|
className: 'umap-delete-vertex',
|
||||||
tooltip: L._('Delete this vertex (Alt-click)')
|
tooltip: L._('Delete this vertex (Alt+Click)')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ L.U.EditControl = L.Control.extend({
|
||||||
var container = L.DomUtil.create('div', 'leaflet-control-edit-enable umap-control'),
|
var container = L.DomUtil.create('div', 'leaflet-control-edit-enable umap-control'),
|
||||||
edit = L.DomUtil.create('a', '', container);
|
edit = L.DomUtil.create('a', '', container);
|
||||||
edit.href = '#';
|
edit.href = '#';
|
||||||
edit.title = L._('Enable editing') + ' (Ctrl-E)';
|
edit.title = L._('Enable editing') + ' (Ctrl+E)';
|
||||||
|
|
||||||
L.DomEvent
|
L.DomEvent
|
||||||
.addListener(edit, 'click', L.DomEvent.stop)
|
.addListener(edit, 'click', L.DomEvent.stop)
|
||||||
|
|
|
@ -877,7 +877,7 @@ L.U.Polyline = L.Polyline.extend({
|
||||||
});
|
});
|
||||||
} else if (index === 0 || index === e.vertex.getLastIndex()) {
|
} else if (index === 0 || index === e.vertex.getLastIndex()) {
|
||||||
items.push({
|
items.push({
|
||||||
text: L._('Continue line (Ctrl-click)'),
|
text: L._('Continue line (Ctrl+Click)'),
|
||||||
callback: e.vertex.continue,
|
callback: e.vertex.continue,
|
||||||
context: e.vertex.continue
|
context: e.vertex.continue
|
||||||
});
|
});
|
||||||
|
|
|
@ -1443,7 +1443,7 @@ L.U.Map.include({
|
||||||
this.help.button(title, 'edit');
|
this.help.button(title, 'edit');
|
||||||
var save = L.DomUtil.create('a', 'leaflet-control-edit-save button', container);
|
var save = L.DomUtil.create('a', 'leaflet-control-edit-save button', container);
|
||||||
save.href = '#';
|
save.href = '#';
|
||||||
save.title = L._('Save current edits') + ' (Ctrl-S)';
|
save.title = L._('Save current edits') + ' (Ctrl+S)';
|
||||||
save.textContent = L._('Save');
|
save.textContent = L._('Save');
|
||||||
var cancel = L.DomUtil.create('a', 'leaflet-control-edit-cancel button', container);
|
var cancel = L.DomUtil.create('a', 'leaflet-control-edit-cancel button', container);
|
||||||
cancel.href = '#';
|
cancel.href = '#';
|
||||||
|
@ -1567,7 +1567,7 @@ L.U.Map.include({
|
||||||
if (this.options.enableMarkerDraw) {
|
if (this.options.enableMarkerDraw) {
|
||||||
items.push(
|
items.push(
|
||||||
{
|
{
|
||||||
text: L._('Draw a marker') + ' (Ctrl-M)',
|
text: L._('Draw a marker') + ' (Ctrl+M)',
|
||||||
callback: this.startMarker,
|
callback: this.startMarker,
|
||||||
context: this
|
context: this
|
||||||
});
|
});
|
||||||
|
@ -1575,7 +1575,7 @@ L.U.Map.include({
|
||||||
if (this.options.enablePolylineDraw) {
|
if (this.options.enablePolylineDraw) {
|
||||||
items.push(
|
items.push(
|
||||||
{
|
{
|
||||||
text: L._('Draw a polygon') + ' (Ctrl-P)',
|
text: L._('Draw a polygon') + ' (Ctrl+P)',
|
||||||
callback: this.startPolygon,
|
callback: this.startPolygon,
|
||||||
context: this
|
context: this
|
||||||
});
|
});
|
||||||
|
@ -1583,7 +1583,7 @@ L.U.Map.include({
|
||||||
if (this.options.enablePolygonDraw) {
|
if (this.options.enablePolygonDraw) {
|
||||||
items.push(
|
items.push(
|
||||||
{
|
{
|
||||||
text: L._('Draw a line') + ' (Ctrl-L)',
|
text: L._('Draw a line') + ' (Ctrl+L)',
|
||||||
callback: this.startPolyline,
|
callback: this.startPolyline,
|
||||||
context: this
|
context: this
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue