Normalize keyboard shortcuts

This commit is contained in:
Binnette 2020-03-28 23:59:23 +01:00
parent bab49715a3
commit c0b7d13cfb
3 changed files with 8 additions and 8 deletions

View file

@ -200,7 +200,7 @@ L.U.ToggleEditAction = L.U.BaseFeatureAction.extend({
options: {
toolbarIcon: {
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: {
toolbarIcon: {
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'),
edit = L.DomUtil.create('a', '', container);
edit.href = '#';
edit.title = L._('Enable editing') + ' (Ctrl-E)';
edit.title = L._('Enable editing') + ' (Ctrl+E)';
L.DomEvent
.addListener(edit, 'click', L.DomEvent.stop)

View file

@ -877,7 +877,7 @@ L.U.Polyline = L.Polyline.extend({
});
} else if (index === 0 || index === e.vertex.getLastIndex()) {
items.push({
text: L._('Continue line (Ctrl-click)'),
text: L._('Continue line (Ctrl+Click)'),
callback: e.vertex.continue,
context: e.vertex.continue
});

View file

@ -1443,7 +1443,7 @@ L.U.Map.include({
this.help.button(title, 'edit');
var save = L.DomUtil.create('a', 'leaflet-control-edit-save button', container);
save.href = '#';
save.title = L._('Save current edits') + ' (Ctrl-S)';
save.title = L._('Save current edits') + ' (Ctrl+S)';
save.textContent = L._('Save');
var cancel = L.DomUtil.create('a', 'leaflet-control-edit-cancel button', container);
cancel.href = '#';
@ -1567,7 +1567,7 @@ L.U.Map.include({
if (this.options.enableMarkerDraw) {
items.push(
{
text: L._('Draw a marker') + ' (Ctrl-M)',
text: L._('Draw a marker') + ' (Ctrl+M)',
callback: this.startMarker,
context: this
});
@ -1575,7 +1575,7 @@ L.U.Map.include({
if (this.options.enablePolylineDraw) {
items.push(
{
text: L._('Draw a polygon') + ' (Ctrl-P)',
text: L._('Draw a polygon') + ' (Ctrl+P)',
callback: this.startPolygon,
context: this
});
@ -1583,7 +1583,7 @@ L.U.Map.include({
if (this.options.enablePolygonDraw) {
items.push(
{
text: L._('Draw a line') + ' (Ctrl-L)',
text: L._('Draw a line') + ' (Ctrl+L)',
callback: this.startPolyline,
context: this
});