Handling Keyboard Shortcuts with Angular

2,614 views
Skip to first unread message

Marcelo Alcantara

unread,
Aug 20, 2012, 6:15:50 PM8/20/12
to ang...@googlegroups.com
Hi

Someone has an example on has to handle keyboard shortcuts with angular (if possible)?

I used mousetrap.js in the past but thought that maybe there would be a more native way of doing that within angular.

Thanks
Marcelo

Pawel Kozlowski

unread,
Aug 20, 2012, 6:18:15 PM8/20/12
to ang...@googlegroups.com
Hi!

On Tue, Aug 21, 2012 at 12:15 AM, Marcelo Alcantara <mar...@gmail.com> wrote:
>
> Someone has an example on has to handle keyboard shortcuts with angular (if
> possible)?

We've got the Keypress directive in angular-ui
(http://angular-ui.github.com/). It needs some cleaning up but I'm
using it and it works just fine.
You can look there for inspiration and send PR with improvements!

Cheers,
Pawel
Reply all
Reply to author
Forward
0 new messages