diff options
author | Devaev Maxim <[email protected]> | 2019-04-24 22:32:53 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-24 22:32:53 +0300 |
commit | 3d64401b111d863072c74e81e49de68885c0e084 (patch) | |
tree | b342b911f0836f65fee8163c77c54d004661f2da /web/share/js/kvm/hid.js | |
parent | 3ecd337b3a259432546e883bc82d83389e0d6aba (diff) |
ipad mouse buttons, keyboard refactoring
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r-- | web/share/js/kvm/hid.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js index 9ecc4be5..c731843c 100644 --- a/web/share/js/kvm/hid.js +++ b/web/share/js/kvm/hid.js @@ -91,6 +91,7 @@ function Hid() { var __releaseAll = function() { __keyboard.releaseAll(); + __mouse.releaseAll(); }; var __emitShortcut = function(codes) { @@ -107,7 +108,7 @@ function Hid() { var index = 0; var iterate = () => setTimeout(function() { - __keyboard.fireEvent(raw_events[index].code, raw_events[index].state); + __keyboard.emit(raw_events[index].code, raw_events[index].state); ++index; if (index < raw_events.length) { iterate(); |