diff options
author | Devaev Maxim <[email protected]> | 2018-08-01 17:31:23 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-01 17:31:23 +0300 |
commit | 9a5c583f808f7167a5a630d675c195a4a7ded2aa (patch) | |
tree | 904f4250943e04aa0f8864ccb7785c9618ece058 /kvmd/web/js/keyboard.js | |
parent | cb8e5efbc74343a932a712444c5d7f017094cbe2 (diff) |
mouse support
Diffstat (limited to 'kvmd/web/js/keyboard.js')
-rw-r--r-- | kvmd/web/js/keyboard.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/web/js/keyboard.js b/kvmd/web/js/keyboard.js index 9d3f65e6..3618f447 100644 --- a/kvmd/web/js/keyboard.js +++ b/kvmd/web/js/keyboard.js @@ -27,8 +27,10 @@ var keyboard = new function() { }; this.setSocket = function(ws) { - keyboard.releaseAll(); - __ws = ws; + if (ws !== __ws) { + keyboard.releaseAll(); + __ws = ws; + } keyboard.updateLeds(); }; |