Angular JS - Hotkeys

I build a little search app with an Angular JS frontend. There are a lot of select and input elements in a form to filter the results. I wanted to have a possibility to jump to those fields with a shortcut. There is a great library called angular-hotkeys for it.

With it you can configure the shortcut to jump to a field customer with the keys CTRL + C.[1]

hotkeys.add({
    combo: 'ctrl+c',
    description: 'Focus on the customer filter',
    allowIn: ['INPUT', 'SELECT'],
    callback: function() {
        focus('customer');
    }
});

  1. How to focus on form fields ↩︎