minor fixes

This commit is contained in:
rlx 2011-03-04 12:44:13 +00:00
parent 8c623b1138
commit 122cc33cb5

View file

@ -431,8 +431,8 @@ requires
//91: 'meta.left',
//92: 'meta.right',
91: 'meta',
92: 'meta',
93: 'select',
//92: 'meta',
93: 'meta',
96: '0.numpad',
97: '1.numpad',
98: '2.numpad',
@ -9384,7 +9384,7 @@ requires
that.zoomToPlace();
},
key_escape: function() {
selectPlace('');
pressEscape();
}
});
@ -9704,6 +9704,21 @@ requires
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) {
}
@ -10275,6 +10290,7 @@ requires
};
that.deselect = function() {
that.editing && that.submit();
that.selected = false;
that.marker.update();
that.polygon.remove();