Last active 1752984618

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

gaiety's Avatar gaiety revised this gist 1752984617. 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