155
rated 0 times
[
159]
[
4]
/ answers: 1 / hits: 26308
/ 10 Years ago, sat, august 23, 2014, 12:00:00
I'm trying to create an interaction similar to the konami code up,up,down,down,a,b,a,b, enter -> something happens.
Is it possible to listen for arrow keyspress using ng-keypress? it seems to not work?
html:
input( ng-keypress='changed($event)' )
Js
$scope.changed = (evt) ->
console.log(evt)
this will not log out arrow key events?
Do I have to roll out my own listeners on the window? if so how can I achieve this in angular?
More From » angularjs