diff options
author | Devaev Maxim <[email protected]> | 2018-07-27 11:29:44 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-27 11:29:44 +0300 |
commit | d2da0829b98e9aca474867f5ce9d5929f8b234af (patch) | |
tree | b0902959494cf6a50c4eb3b671c642f5c9b2a197 /kvmd/web/js/hid.js | |
parent | b7d933b6ce128d466a9e0e031ead9e083c370374 (diff) |
release keys when window loosing focus
Diffstat (limited to 'kvmd/web/js/hid.js')
-rw-r--r-- | kvmd/web/js/hid.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmd/web/js/hid.js b/kvmd/web/js/hid.js index ccab02cc..64ccb0e6 100644 --- a/kvmd/web/js/hid.js +++ b/kvmd/web/js/hid.js @@ -2,11 +2,19 @@ var hid = new function() { var __install_timer = null; var __installed = false; + var __hidden_attr = null; + var __visibility_change_attr = null; + this.init = function() { keyboard.init(); mouse.init(); } + this.releaseAll = function() { + keyboard.releaseAll(); + mouse.releaseAll(); + }; + this.emitShortcut = function(...codes) { console.log(codes); var delay = 0; |