I suppose that I should use directive, but it seems strange to add directive to body, but listen events on document.
What is a proper way to do this?
UPDATE:
I can't vouch for it just yet but I've started taking a look at AngularHotkeys.js:
http://chieffancypants.github.io/angular-hotkeys/
Will update with more info once I've got my teeth into it.
Update 1: Oh there's a nuget package: angular-hotkeys
Update 2: actually very easy to use, just set up your binding either in your route or as I'm doing, in your controller:
hotkeys.add('n', 'Create a new Category', $scope.showCreateView);
hotkeys.add('e', 'Edit the selected Category', $scope.showEditView);
hotkeys.add('d', 'Delete the selected Category', $scope.remove);