summaryrefslogtreecommitdiff
path: root/kvmd/web/js/keyboard.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-01 17:31:23 +0300
committerDevaev Maxim <[email protected]>2018-08-01 17:31:23 +0300
commit9a5c583f808f7167a5a630d675c195a4a7ded2aa (patch)
tree904f4250943e04aa0f8864ccb7785c9618ece058 /kvmd/web/js/keyboard.js
parentcb8e5efbc74343a932a712444c5d7f017094cbe2 (diff)
mouse support
Diffstat (limited to 'kvmd/web/js/keyboard.js')
-rw-r--r--kvmd/web/js/keyboard.js6
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();
};