summaryrefslogtreecommitdiff
path: root/kvmd/web/js/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-09-02 20:08:35 +0300
committerDevaev Maxim <[email protected]>2018-09-02 20:08:35 +0300
commit3f40aefafe3d54bb3c870676838723433c6e7bb3 (patch)
tree359961225e2de72b954d7ad808d2dc4a90e40c77 /kvmd/web/js/hid.js
parentecb866f57a983f22e67b74b0bef45a3f211a3d0f (diff)
compact mobile keyboard
Diffstat (limited to 'kvmd/web/js/hid.js')
-rw-r--r--kvmd/web/js/hid.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/web/js/hid.js b/kvmd/web/js/hid.js
index 09c67d98..fb8438a5 100644
--- a/kvmd/web/js/hid.js
+++ b/kvmd/web/js/hid.js
@@ -48,7 +48,7 @@ function Hid() {
$("pak-button").title = $("pak-led").title = "Your browser does not support the Clipboard API.\nUse Google Chrome or Chromium.";
}
- Array.prototype.forEach.call($$("shortcut"), function(el_shortcut) {
+ Array.prototype.forEach.call(document.querySelectorAll("[data-shortcut]"), function(el_shortcut) {
el_shortcut.onclick = () => __emitShortcut(el_shortcut.getAttribute("data-shortcut").split(" "));
});
};