minor fixes
This commit is contained in:
parent
8c623b1138
commit
122cc33cb5
1 changed files with 19 additions and 3 deletions
|
@ -431,8 +431,8 @@ requires
|
||||||
//91: 'meta.left',
|
//91: 'meta.left',
|
||||||
//92: 'meta.right',
|
//92: 'meta.right',
|
||||||
91: 'meta',
|
91: 'meta',
|
||||||
92: 'meta',
|
//92: 'meta',
|
||||||
93: 'select',
|
93: 'meta',
|
||||||
96: '0.numpad',
|
96: '0.numpad',
|
||||||
97: '1.numpad',
|
97: '1.numpad',
|
||||||
98: '2.numpad',
|
98: '2.numpad',
|
||||||
|
@ -9384,7 +9384,7 @@ requires
|
||||||
that.zoomToPlace();
|
that.zoomToPlace();
|
||||||
},
|
},
|
||||||
key_escape: function() {
|
key_escape: function() {
|
||||||
selectPlace('');
|
pressEscape();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -9704,6 +9704,21 @@ requires
|
||||||
return place;
|
return place;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function pressEscape() {
|
||||||
|
var place;
|
||||||
|
if (self.selected) {
|
||||||
|
place = getPlaceById(self.selected);
|
||||||
|
if (place.editing) {
|
||||||
|
place.submit();
|
||||||
|
} else if (place.selected) {
|
||||||
|
place.deselect();
|
||||||
|
}
|
||||||
|
} else if (self.resultPlace) {
|
||||||
|
self.resultPlace.remove();
|
||||||
|
self.resultPlace = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function removePlace(id) {
|
function removePlace(id) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10275,6 +10290,7 @@ requires
|
||||||
};
|
};
|
||||||
|
|
||||||
that.deselect = function() {
|
that.deselect = function() {
|
||||||
|
that.editing && that.submit();
|
||||||
that.selected = false;
|
that.selected = false;
|
||||||
that.marker.update();
|
that.marker.update();
|
||||||
that.polygon.remove();
|
that.polygon.remove();
|
||||||
|
|
Loading…
Add table
Reference in a new issue