chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 254 forks source link

Hotkey using only slash does not apper on the cheatsheet #278

Open felipeplets opened 6 years ago

felipeplets commented 6 years ago

Hello guys,

Nice work here, I just started using it and to mimic Google standard hotkey to focus on the search bar I've used the following hotkey definition:

hotkeys.add({
      combo: '/',
      description: 'Focus on search box',
      callback: function() {
        angular.element('body').find('#search').focus();
      }
    });

It works fine, but once I open the cheat sheet I can't see it: screen shot 2018-01-29 at 18 34 57

I've tried different combinations and it works fine, the only one that does not appear on the cheatsheet is the slash alone. I believe it is escaping something along the road, but I will not be able to debug it right now.

Anyone confirms this as a bug?

felipeplets commented 6 years ago

Can't explain, but it just started working ¯\(ツ)