Dissalow vertex deletion while dragging - thanks for the review crschmidt (closes #1122).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-11-01 23:06:10 +00:00
parent ba8354b593
commit 8007298d7b
2 changed files with 7 additions and 1 deletions

View File

@@ -168,6 +168,11 @@
// run the above four tests twice
control.handleKeypress(delKey);
control.handleKeypress(dKey);
// now make sure nothing happens if the vertex is mid-drag
control.dragControl.dragHandler.dragging = true;
control.handleKeypress(delKey);
// reset modified methods
control.onModification = function() {};