Last active 3 months ago

Hack for JavaScript check to see if the user might be typing somewhere

gaiety's Avatar gaiety revised this gist 3 months ago. Go to revision

1 file changed, 1 insertion

userIsTypingStuff.js(file created)

@@ -0,0 +1 @@
1 + let userIsTypingStuff = document.querySelectorAll('input:focus, textarea:focus').length !== 0;
Newer Older