Clear selection on esc (fixes #643)

This commit is contained in:
John Firebaugh
2013-02-07 13:36:19 -08:00
parent 02d4b8f1aa
commit 5cad057212
+4
View File
@@ -42,6 +42,10 @@ iD.modes.Select = function(context, selection, initial) {
.filter(function(o) { return o.available(); });
operations.unshift(iD.operations.Delete(selection, context));
keybinding.on('⎋', function() {
context.enter(iD.modes.Browse(context));
});
operations.forEach(function(operation) {
keybinding.on(operation.key, function() {
if (operation.enabled()) {