When `submitByEnter: true` is passed as an option on ngDialog.open() it evaluates the ng-click attributes contents upon keydown of Enter(13). Making the dialog reactive to the enter button.
touched code that wasn't supposed to be touched
added minified version
Merge pull request #35 from hetcollectief/enter_submit

on keydown Enter (13) evaluate the ng-click statement of the primary button