Files
iD/js/id/operations/move.js
John Firebaugh 988bfeb767 Support both delete and backspace (fixes #887)
Also show correct key in operation tooltip.
2013-03-04 17:12:44 -08:00

23 lines
576 B
JavaScript

iD.operations.Move = function(selection, context) {
var operation = function() {
context.enter(iD.modes.Move(context, selection));
};
operation.available = function() {
return selection.length > 1 ||
context.entity(selection[0]).type !== 'node';
};
operation.enabled = function() {
return true;
};
operation.id = "move";
operation.keys = [t('operations.move.key')];
operation.title = t('operations.move.title');
operation.description = t('operations.move.description');
return operation;
};