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