-
-
Save buralex/18a91170feda8c981a536de3d2631e6c to your computer and use it in GitHub Desktop.
Log :focus element each time tab key is pressed
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('keyup', function(e) { | |
| 9 != e.keyCode || e.metaKey || e.ctrlKey || console.log(document.activeElement) | |
| }, false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment