diff --git a/rd_ui/app/scripts/directives.js b/rd_ui/app/scripts/directives.js index edc387691..a41c9b863 100644 --- a/rd_ui/app/scripts/directives.js +++ b/rd_ui/app/scripts/directives.js @@ -270,6 +270,11 @@ // allow 'shift' to break lines if (e.which === 13 && !e.shiftKey) { save(); + } else if (e.which === 27) { + $scope.value = $scope.oldValue; + $scope.$apply(function() { + $(inputElement[0]).blur(); + }); } }).blur(function() { save();