modified ng-enter directive to clear the field and pass its value