Hi Ben,

This is something I would not do in the template. It is better to add an 
eventlistener in your component. Also, put this handler on the document, 
that way, the keys will work whenever the document has focus. It might 
confuse your user when a key only works after focusing a 'special' area of 
your app. (well, in some cases that might make sense, but in most cases 
it's just plain confusing to them)

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to