mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
Always prevent default on the delete key. Fixes #303
This commit is contained in:
@@ -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());
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user