(async function () { await CefSharp.BindObjectAsync("keyboard", "bound"); var inputs = document.getElementsByTagName('input'); var i = 0; do { var type = inputs[i].type; if (type == 'text' || type == 'email' || type == 'password' || type == 'search' || type == 'date' || type == 'url' || type == 'time' || type == 'tel' || type == 'number') { inputs[i].onfocus = function () { keyboard.openKeyboard(type); } inputs[i].onblur = function () { keyboard.closeKeyboard(); } } } while (inputs[++i]) })();