Last active
December 16, 2015 06:59
-
-
Save denovo/5395264 to your computer and use it in GitHub Desktop.
Code snippet to modify the gridsetapp overlay script (gridset-overlay.js) to also accept "cmd+k" or "cmd+\" to show the the overlay.
Useful for chrome, because cmd+g is already reserved as a keyboard shortcut. The code below should be pasted below line 25 in the gridset-overlay.js file (inside the switch statement) note: "cmd+g" will still work …
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case 75: | |
| var gw = document.getElementById('gridsetoverlaywrap'); | |
| if (!gw) gs.show(); | |
| else gs.remove(gw); | |
| gs.prevent(e); | |
| break; | |
| case 220: | |
| var gw = document.getElementById('gridsetoverlaywrap'); | |
| if (!gw) gs.show(); | |
| else gs.remove(gw); | |
| gs.prevent(e); | |
| break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forked here: https://gist.github.com/strangerpixel/5419422
So cmd-K works and cmd-U is removed (because it conflicts with view source on Chrome).