I have a method that gets called inside a div tag using ng-click="startChat()"
- it works fine.
I would like the same function to be called there when pressing down a key, let's say 'p' in this case which has a keycode of 112.
I tried adding the following to the div:
ng-keydown="$event.keyCode == 112 ? startChat()"
I also tried the same with ng-keyupp but nothing happens. Does someone know why and how can I achieve the task?