Always prevent default on the delete key. Fixes #303

This commit is contained in:
Tom MacWright
2012-12-21 14:19:55 -05:00
parent 780d79e2d5
commit 57cf18e2d6
+3
View File
@@ -203,6 +203,9 @@ window.iD = function(container) {
.on('a', function(evt, mods) {
controller.enter(iD.modes.AddArea());
})
.on('⌫.prevent_navigation', function(evt, mods) {
evt.preventDefault();
})
.on('p', function(evt, mods) {
controller.enter(iD.modes.AddPoint());
})