From 3e7b5bf04908dbcf14bbeafc052bce9c51bb6b2c Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Tue, 18 Dec 2018 23:25:23 +0300 Subject: refactoring --- web/share/js/kvm/hid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/share/js/kvm/hid.js') 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(" "))); }); }; -- cgit v1.2.3