Created
May 19, 2017 21:32
-
-
Save andyford/216c5f71b83c84cee3bbe2aaf629588e to your computer and use it in GitHub Desktop.
Clear the dev console on cmd+k
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
| document.addEventListener('keydown', function(e) { | |
| if (e.keyCode == 75 && (e.ctrlKey || e.metaKey)) { | |
| console.clear(); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment