Skip to content

Instantly share code, notes, and snippets.

@PacodiazDG
Created March 4, 2018 20:07
Show Gist options
  • Save PacodiazDG/91de8bf5c44110e1d198821a2ab9c158 to your computer and use it in GitHub Desktop.
Save PacodiazDG/91de8bf5c44110e1d198821a2ab9c158 to your computer and use it in GitHub Desktop.
document.onkeyup= (e) => {
var e = e || window.event;
if(e.which == 17||e.which == 73) {
window.open(`${window.location.href}/direccion`,'_blank','noopener');
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment