Created
April 19, 2018 09:02
-
-
Save tanjo/e734ba225f9c9101c63b863c4f9d97e0 to your computer and use it in GitHub Desktop.
ショートカットの Command + ↓ が効かなかったときに試したコード
This file contains 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
document.onkeydown = function(e) { | |
if((e.ctrlKey && !e.metaKey) || (!e.ctrlKey && e.metaKey)) { | |
if (e.keyCode === 40) { | |
window.scrollTo(0,document.body.scrollHeight); | |
} | |
} | |
console.log(JSON.stringify(e.keyCode)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment