pikvm/pikvm#1418: web: hold/lock key on keypad

This commit is contained in:
Maxim Devaev
2025-05-18 22:07:47 +03:00
parent 70ca478a78
commit c3eed7c497
10 changed files with 207 additions and 170 deletions

View File

@@ -24,28 +24,16 @@
.keypad#stream-mouse-buttons(align="center")
.keypad-block
.keypad-row
.key.wide-3.left.rounded-left(data-code="left")
.label Left
.modifier.left.small.rounded-right(data-code="left")
.label #[b •]#[br]Hold
.empty(style="width: 15px")
.key.wide-1.left.rounded-left(data-code="middle")
.label Mid
.modifier.left.small.rounded-right(data-code="middle")
.label #[b •]#[br]Hold
.empty(style="width: 15px")
.modifier.right.small.rounded-left(data-code="right")
.label #[b •]#[br]Hold
.key.wide-3.right.rounded-right(data-code="right")
.label Right
.key.wide-3.left.rounded-left(data-code="left" data-allow-autohold)
.label #[b •]#[br]Left
.key.wide-1.rounded-none(data-code="middle" data-allow-autohold)
.label #[b •]#[br]Mid
.key.wide-3.right.rounded-right(data-code="right" data-allow-autohold)
.label #[b •]#[br]Right
.empty(style="width: 30px")
.key.small.rounded-left(data-code="up")
.label Up
.key.small.rounded-right(data-code="down")
.label Down
.key.small.rounded-left(data-code="up" data-allow-autohold)
.label #[b •]#[br]Up
.key.small.rounded-right(data-code="down" data-allow-autohold)
.label #[b •]#[br]Down