From what I can see, the recomended way to handle enter key in dialogs in AngularJS is to place a <form> tag and a submit button inside the dialog.
Fair enough, but if you use Angular-UI and their $dialog service, the form will simply close silently when pressing enter. no way to intercept that. even if you attach handlers to ng-click or ng-submit, the form will just close w/o returning any result.
Is there something else I need to do
[Edit]
Solved it, I had to specify explicitly that my "cancel" button was of type "button". Seems like it defaults to "submit" ?
So there was no real problem except for my html form skills :)