diff options
author | Devaev Maxim <[email protected]> | 2018-09-08 01:16:37 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-09-09 01:30:41 +0300 |
commit | 15981e62b52eefbf7ca8c7f24d20554ea7c9b4bf (patch) | |
tree | 17301fb258416956b80da735fe72c6ff041582cc /kvmd/web/js/hid.js | |
parent | 3a68c2ae1001f1207e639925d10d5f88f62d4430 (diff) |
touch improvements
Diffstat (limited to 'kvmd/web/js/hid.js')
-rw-r--r-- | kvmd/web/js/hid.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/web/js/hid.js b/kvmd/web/js/hid.js index fb8438a5..520c4552 100644 --- a/kvmd/web/js/hid.js +++ b/kvmd/web/js/hid.js @@ -43,13 +43,13 @@ function Hid() { if (window.navigator.clipboard && window.navigator.clipboard.readText) { __chars_to_codes = __buildCharsToCodes(); - $("pak-button").onclick = __pasteAsKeys; + tools.setOnClick($("pak-button"), __pasteAsKeys); } else { $("pak-button").title = $("pak-led").title = "Your browser does not support the Clipboard API.\nUse Google Chrome or Chromium."; } Array.prototype.forEach.call(document.querySelectorAll("[data-shortcut]"), function(el_shortcut) { - el_shortcut.onclick = () => __emitShortcut(el_shortcut.getAttribute("data-shortcut").split(" ")); + tools.setOnClick(el_shortcut, () => __emitShortcut(el_shortcut.getAttribute("data-shortcut").split(" "))); }); }; |