How can I detect keydown or keypress event in angular.js?
Update: ngKeypress, ngKeydown and ngKeyup are now part of AngularJS. <!– you can, for example, specify an expression to evaluate –> <input ng-keypress=”count = count + 1″ ng-init=”count=0″> <!– or call a controller/directive method and pass $event as parameter. With access to $event you can now do stuff like finding which key was pressed –> … Read more