core.directive("validatedinput", function() {
	return {
		template: '<span ng-include src="view"></span>',
		restrict: 'E',
		scope: {
			"type": "@",
			"model": "=",
			"property": "@",
			"label": "@",
			"placeholder": "@",
			"truevalue": "@",
			"falsevalue": "@",
			"blur": "&",
			"results": "="
		},
		link: function ($scope, element, attr) {
			$scope.view = attr.view ? attr.view : "bower_components/core/app/views/directives/validatedInput.html";
		
			$scope.keydown = function($event) {
				if($event.which == 13) {
					$event.target.blur();
				}
			};

		}
	};
});
@@ -491,24 +491,71 @@
 n($event) %7B%0A
+%09%09%09%09// enter(13): submit value to be persisted%0A
 %09%09%09%09if($even
@@ -604,16 +604,124 @@
 ;%0A%09%09%09%09%7D%0A
+%09%09%09%09// escape(27): reset value using shadow%0A%09%09%09%09if($event.which == 27) %7B%0A%09%09%09%09%09$scope.model.refresh();%0A%09%09%09%09%7D%0A
 %09%09%09%7D;%0A%0A%09

Refresh model when pressing escape within validated input.