summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-12-18 23:25:23 +0300
committerDevaev Maxim <[email protected]>2018-12-18 23:28:08 +0300
commit3e7b5bf04908dbcf14bbeafc052bce9c51bb6b2c (patch)
tree9d7d008bb4f65769beeb2196dd7d4cae8143a169 /web/share/js/kvm/hid.js
parent8867b32356d0731dfffa2687e669cb9462f206b8 (diff)
refactoring
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r--web/share/js/kvm/hid.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js
index 49d659ab..1c60b099 100644
--- a/web/share/js/kvm/hid.js
+++ b/web/share/js/kvm/hid.js
@@ -46,7 +46,7 @@ function Hid() {
tools.setOnClick($("hid-pak-button"), __clickPasteAsKeysButton);
tools.setOnClick($("hid-reset-button"), __clickResetButton);
- Array.prototype.forEach.call(document.querySelectorAll("[data-shortcut]"), function(el_shortcut) {
+ tools.forEach($$$("[data-shortcut]"), function(el_shortcut) {
tools.setOnClick(el_shortcut, () => __emitShortcut(el_shortcut.getAttribute("data-shortcut").split(" ")));
});
};