summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/kvm/index.html26
-rw-r--r--web/share/js/kvm/keyboard.js5
2 files changed, 9 insertions, 22 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 81d4d340..bd4ea1d4 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -314,7 +314,7 @@
<button data-force-hide-menu data-shortcut="CapsLock" class="row50">
&bull;
Caps Lock
- <img class="inline-lamp hid-keyboard-leds hid-keyboard-caps-led led-gray feature-disabled" src="../share/svg/led-square.svg" />
+ <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" />
</button>
<button data-force-hide-menu data-shortcut="MetaLeft" class="row50">&bull; Left Win</button>
</div>
@@ -433,10 +433,8 @@
<div class="keypad-row">
<div data-code="CapsLock" class="key wide-3 left small">
<div class="label">
- <span class="hid-keyboard-leds feature-disabled">
- <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" />
- <br>
- </span>
+ <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" />
+ <br>
Caps Lock
</div>
</div>
@@ -482,10 +480,8 @@
<div data-code="PrintScreen" class="modifier small"><div class="label"><b>&bull;</b><br>Pt/Sq</div></div>
<div data-code="ScrollLock" class="key small">
<div class="label">
- <span class="hid-keyboard-leds feature-disabled">
- <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" />
- <br>
- </span>
+ <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" />
+ <br>
ScrLk
</div>
</div>
@@ -537,10 +533,8 @@
<div data-code="PrintScreen" class="modifier margin-0 small"><div class="label"><b>&bull;</b><br>Pt/Sq</div></div>
<div data-code="ScrollLock" class="key margin-0 small">
<div class="label">
- <span class="hid-keyboard-leds feature-disabled">
- <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" />
- <br>
- </span>
+ <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" />
+ <br>
ScrLk
</div>
</div>
@@ -586,10 +580,8 @@
<div class="keypad-row">
<div data-code="CapsLock" class="key wide-3 left small">
<div class="label">
- <span class="hid-keyboard-leds feature-disabled">
- <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" />
- <br>
- </span>
+ <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" />
+ <br>
Caps Lock
</div>
</div>
diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js
index 0398baef..10c6ccc5 100644
--- a/web/share/js/kvm/keyboard.js
+++ b/web/share/js/kvm/keyboard.js
@@ -75,11 +75,6 @@ export function Keyboard() {
__online = state.online;
__updateOnlineLeds();
- for (let el of $$$(".hid-keyboard-leds")) {
- console.log(el, state.features.leds);
- el.classList.toggle("feature-disabled", !state.features.leds);
- }
-
for (let led of ["caps", "scroll", "num"]) {
for (let el of $$$(`.hid-keyboard-${led}-led`)) {
if (state.leds[led]) {