brtnshrdr / angular2-hotkeys

Keyboard shortcuts for Angular 2 apps
MIT License
203 stars 95 forks source link

Cheatsheet displaying incorrect key #115

Closed ChrisG260 closed 5 years ago

ChrisG260 commented 5 years ago

Am I doing something wrong, or is this a bug? Any time I try a "-" sign for a Keyboard cheat-sheet key it gets displayed as a "+".

Code:

this.hotKeys.add(new Hotkey(['ctrl+-'], () => false, null, 'toolbar.zoomOut'));

Keyboard Shortcuts Page:

image

I can replicate with any combo of negative signs, for example "new Hotkey(['-----']" shows up as "+++++"

Am I missing some setting or trick to get a negative to display?

ChrisG260 commented 5 years ago

Found a solution: (new Hotkey(['ctrl+\u2212'] Use Unicode equivalent.