diff options
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(); }; |