AngularJS - ng-keypress not working for enter event
Finally I had to replace <div>
tag with the <button>
tag to solve this issue.
Button tag
worked perfectly for this issue.
<div class="actions">
<button class="ui approve button red" data-ng-click="test()" id="confirm-yes" tabindex="8" ng-keypress="test()">Yes</button>
<button class="ui cancel button" data-ng-click="test()" id="confirm-no" tabindex="7" ng-keypress="test()">Cancel</button>
</div>