JSFiddle - React, Tailwind, and code Playground
HTML
<select>
<option>1</option>
<option>2</option>
</select>
<select>
<option>1</option>
<option>2</option>
</select>
JavaScript
document.getElementsByTagName("select")[1].focus();
function mousehandler() {
alert("For the purpose of psych experiment, you can't use mouse.");
setTimeout(function(){document.getElementsByTagName("select")[1].focus();},1);
return false;
}
document.oncontextmenu = mousehandler;
document.onmousedown = mousehandler;