Created
May 22, 2017 11:15
-
-
Save oboshto/81ad99042fa2455795e315bbb2045425 to your computer and use it in GitHub Desktop.
detect tab focus
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
element.addEventListener('keyup', (e) => { | |
if (e.keyCode === 9) doSmthng(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment