diff options
author | Devaev Maxim <[email protected]> | 2019-09-30 07:36:50 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-30 07:36:50 +0300 |
commit | 5b8ac7ba70ee0ade4139fa888a23e4d4d3eb22cd (patch) | |
tree | 555dac169b54ccda90d947f965378002d5c75f96 /web | |
parent | eb445ca45dc6cd002d2d13889000adda0639f81d (diff) |
added middle button
Diffstat (limited to 'web')
-rw-r--r-- | web/kvm/index.html | 3 | ||||
-rw-r--r-- | web/share/js/kvm/mouse.js | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index 71e92548..92df8097 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -304,6 +304,9 @@ <div data-code="left" class="key wide-4 left small"><p>Mouse<br>Left</p></div> <div data-code="left" class="modifier wide-2 left small"><p><b>•</b><br>← Hold</p></div> <div class="empty-key" style="width:10px"></div> + <div data-code="middle" class="key wide-2 left small"><p>Mouse<br>Middle</p></div> + <div data-code="middle" class="modifier wide-2 left small"><p><b>•</b><br>← Hold</p></div> + <div class="empty-key" style="width:10px"></div> <div data-code="right" class="modifier wide-2 right small"><p><b>•</b><br>Hold →</p></div> <div data-code="right" class="key wide-4 right small"><p>Mouse<br>Right</p></div> </div> diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index cf2dfac4..85efa199 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -121,6 +121,7 @@ export function Mouse() { switch (event.button) { case 0: __keypad.emit("left", state); break; case 2: __keypad.emit("right", state); break; + case 1: __keypad.emit("middle", state); break; } }; |