(function () {
function emblur(e) {
switch (e.type) {
case 'keydown':
case 'keyup':
return emblur.off = e.shiftKey || e.ctrlKey;
}
if (emblur.off || emblur.ignore.test(e.target.tagName)) return;
clearTimeout(emblur.tim);
emblur.tim = setTimeout(function (lm) lm && lm.blur(), 500, e.target);
}
emblur.ignore = /^(?!embed$|object$)/i;
let c = document.getElementById('content');
if (c) {
for (let type of ['focus', 'keydown', 'keyup'])
c.addEventListener(type, emblur, type === 'focus');
}
})();