Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bparkhurst opened this issue Oct 16, 2018 · 1 comment
Open

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

bparkhurst opened this issue Oct 16, 2018 · 1 comment

Comments

@bparkhurst
Copy link

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
Copy link

aramando commented Oct 16, 2018

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants