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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…