angular-hotkeys icon indicating copy to clipboard operation
angular-hotkeys copied to clipboard

Hotkey using only slash does not apper on the cheatsheet

Open felipeplets opened this issue 7 years ago • 1 comments

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 avatar Jan 29 '18 20:01 felipeplets

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

felipeplets avatar Jan 29 '18 21:01 felipeplets