front end hacking

How to observe custom events in AngularJS?

ProblemSimple example: I have a textarea and want to provide additional behavior to it: do something on enter key and go to next line on shift + enterI suppose that I should provide additional directive to add that behavior. And I’ve done this: http://jsbin.com/oruvuy/1/editP.S. One hackie thing seems strange for me: I invoke $digest() manually. Is it ok? Any thoughts?JS:angular.module('Chat', []) .directive('enterSubmit', function...