var active_type = (document.activeElement.type || 'a').toLowerCase();
var typing = true;
if (document.activeElement == document.body) {
var active_type = (document.activeElement.type || 'a').toLowerCase();
var typing = true;
if (document.activeElement == document.body) {