Created
December 26, 2016 05:58
-
-
Save hergaiety/8c44391ba0aae7bcce793c4f4da7f1e4 to your computer and use it in GitHub Desktop.
Boolean for whether the user is focused on an input or textarea anywhere.
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
let userIsTypingStuff = document.querySelectorAll('input:focus, textarea:focus').length !== 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment