blob: 54efa106263fbb463d20fdcc65095b919d44157f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<(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])
})();
|