const role = document.activeElement && document.activeElement.getAttribute('role'); const typing = tag === 'input' || tag === 'textarea' || tag === 'button' || role === 'button'; if (!typing && (e.key === 'r' || e.key === 'R')) { e.preventDefault(); reset(); }
Classify each vector/disease control strategy as Chemical, Biological, or Genetic.