What I wanted to do is figure out whenever the user is engaged with an INPUT or TEXTAREA element and set a variable flag to true... and set that flag to false immediately af
function getActive(){ return $(document.activeElement).is('input') || $(document.activeElement).is('textarea'); }