summaryrefslogtreecommitdiff
path: root/web/js/kvm/hid.js
diff options
context:
space:
mode:
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();