diff options
author | Devaev Maxim <[email protected]> | 2018-07-16 05:16:53 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-16 05:16:53 +0300 |
commit | 211401b52c1d334b50dede28bab0a3a6e056992e (patch) | |
tree | cb2389d5b9a061ae1b2eb4919e0195374e043513 /kvmd/web/js/mouse.js | |
parent | 52bf4f38e42852818354ca7f182b589a2f09631d (diff) |
minor js fixes
Diffstat (limited to 'kvmd/web/js/mouse.js')
-rw-r--r-- | kvmd/web/js/mouse.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/js/mouse.js b/kvmd/web/js/mouse.js index f906e146..468c9449 100644 --- a/kvmd/web/js/mouse.js +++ b/kvmd/web/js/mouse.js @@ -35,9 +35,9 @@ var mouse = new function() { var __buttonHandler = function(ws, event, state) { // https://www.w3schools.com/jsref/event_button.asp switch (event.button) { - case 0: var button = "Left"; break; - case 2: var button = "Right"; break; - default: var button = null; break + case 0: var button = "left"; break; + case 2: var button = "right"; break; + default: var button = null; break; } if (button) { tools.debug("Mouse button", (state ? "pressed:" : "released:"), button); |