Return should accept input and return to browse mode (closes #2380)

This commit is contained in:
Bryan Housel
2015-12-16 21:33:53 -05:00
parent 2bbe968045
commit 8139ca7a48
+6 -1
View File
@@ -145,6 +145,10 @@ iD.modes.Select = function(context, selectedIDs) {
}
}
function ret() {
context.enter(iD.modes.Browse(context));
}
behaviors.forEach(function(behavior) {
context.install(behavior);
@@ -157,7 +161,8 @@ iD.modes.Select = function(context, selectedIDs) {
operations.unshift(iD.operations.Delete(selectedIDs, context));
keybinding
.on('⎋', function() { context.enter(iD.modes.Browse(context)); }, true)
.on('⎋', ret, true)
.on('↩', ret, true)
.on('space', toggleMenu);
operations.forEach(function(operation) {