diff options
Diffstat (limited to 'kvmd/web/js/hid.js')
-rw-r--r-- | kvmd/web/js/hid.js | 2 |
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(" ")); }); }; |