Skip to content

Instantly share code, notes, and snippets.

@rsxdalv
Last active June 4, 2018 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsxdalv/88e7459009d2c2276ec23db60c581648 to your computer and use it in GitHub Desktop.
Save rsxdalv/88e7459009d2c2276ec23db60c581648 to your computer and use it in GitHub Desktop.
document.onkeyup=function(e){
var e = e || window.event; // for IE to cover IEs window event-object
if(e.altKey && e.which == '1'.charCodeAt(0)) {
document.querySelector('#layerView > div.layerCodeContainer > div > div > div.title > button.button.copyButton').click()
// alert('Keyboard shortcut working!');
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment