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

Change the cheatsheet Shift icon (up arrow) to the word SHIFT. #289

Open bparkhurst opened 5 years ago

bparkhurst commented 5 years ago

Our customers are getting confused that the "up arrow" icon (Shift key) in the cheatsheet stands for the up arrow on the keyboard. Can you change this to the word SHIFT instead?

aramando commented 5 years ago

@bparkhurst Sadly chieffancypants isn't active on this repo any more so you'll have to do this yourself, but it's easy, just edit the icon mapping for the shift key to whatever you want, on this line here: https://github.com/chieffancypants/angular-hotkeys/blob/master/src/hotkeys.js#L110. Since it's just a character string you could use the string SHIFT instead if you want, or any other Unicode icon character.

Normally I'd say fork the repo and make changes to it there, but you'd have to make sure you have Grunt installed and build the production version from the source, and since it looks highly unlikely there will be any further upstream updates you would want to merge in, you might as well just edit the production source file directly (find it by searching for "shift:", as the unicode code is converted to the actual icon by the minifier).