Skip to content

Instantly share code, notes, and snippets.

@denovo
Last active December 16, 2015 06:59
Show Gist options
  • Select an option

  • Save denovo/5395264 to your computer and use it in GitHub Desktop.

Select an option

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 …
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;
@sta1r
Copy link

sta1r commented Apr 19, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment