feat: Add setting to disable lock key OSD notifications

This commit is contained in:
loner
2025-11-25 21:20:50 +08:00
parent 6a427b2cfc
commit 4c6cf8d21b
5 changed files with 20 additions and 1 deletions
+6
View File
@@ -205,6 +205,8 @@ Variants {
target: LockKeysService
function onCapsLockChanged(active) {
if (!Settings.data.osd.showLockKeyNotifications)
return;
root.currentOSDType = "lockkey";
root.lastLockKeyChanged = active ? "CAPS ON" : "CAPS OFF";
if (!root.active)
@@ -214,6 +216,8 @@ Variants {
}
function onNumLockChanged(active) {
if (!Settings.data.osd.showLockKeyNotifications)
return;
root.currentOSDType = "lockkey";
root.lastLockKeyChanged = active ? "NUM ON" : "NUM OFF";
if (!root.active)
@@ -223,6 +227,8 @@ Variants {
}
function onScrollLockChanged(active) {
if (!Settings.data.osd.showLockKeyNotifications)
return;
root.currentOSDType = "lockkey";
root.lastLockKeyChanged = active ? "SCROLL ON" : "SCROLL OFF";
if (!root.active)