diff options
author | Devaev Maxim <[email protected]> | 2018-08-07 19:09:47 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-07 19:09:47 +0300 |
commit | a844e9d152b67e0f2aa344992f02397144394a6d (patch) | |
tree | d745599bece9eae126f636d2aba5f568f31714d8 /kvmd/web/js/keyboard.js | |
parent | 20f7e2cde675fe7c3bddbf62328ebe9a11d96e13 (diff) |
web linting
Diffstat (limited to 'kvmd/web/js/keyboard.js')
-rw-r--r-- | kvmd/web/js/keyboard.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/js/keyboard.js b/kvmd/web/js/keyboard.js index de881f7a..67553159 100644 --- a/kvmd/web/js/keyboard.js +++ b/kvmd/web/js/keyboard.js @@ -50,7 +50,7 @@ var keyboard = new function() { $("hid-keyboard-led").className = (focused ? "led-on" : "led-off"); }; - this.releaseAll = function(ws) { + this.releaseAll = function() { __keys.concat(__modifiers).forEach(function(el_key) { if (__isActive(el_key)) { keyboard.fireEvent(el_key.id, false); @@ -61,13 +61,13 @@ var keyboard = new function() { this.fireEvent = function(code, state) { $("keyboard-window").dispatchEvent(new KeyboardEvent( (state ? "keydown" : "keyup"), - {code: code}, + {code: code} )); }; var __keyboardHandler = function(event, state) { event.preventDefault(); - el_key = $(event.code); + var el_key = $(event.code); if (el_key && !event.repeat) { __commonHandler(el_key, state, "pressed"); if (__mac_cmd_hook) { |