summaryrefslogtreecommitdiff
path: root/web/js/kvm/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-27 17:32:36 +0300
committerDevaev Maxim <[email protected]>2018-11-27 17:32:36 +0300
commit2cea16a978f475aa2b12d49d7ac2eccfd5c6892f (patch)
tree4d3d9e2fe648c93852695e9905a7c8854a592c6f /web/js/kvm/hid.js
parent8c3f604e4a64fa6b81da30d6d3cba6c9dc0d9d71 (diff)
blur logic
Diffstat (limited to 'web/js/kvm/hid.js')
-rw-r--r--web/js/kvm/hid.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/kvm/hid.js b/web/js/kvm/hid.js
index 341527b1..e7877484 100644
--- a/web/js/kvm/hid.js
+++ b/web/js/kvm/hid.js
@@ -38,8 +38,8 @@ function Hid() {
);
}
- window.onpagehide = __releaseAll;
- window.onblur = __releaseAll;
+ window.addEventListener("pagehide", __releaseAll);
+ window.addEventListener("blur", __releaseAll);
__chars_to_codes = __buildCharsToCodes();