Merge pull request #1739 from MrDowntempo/fix/BetterLockKeysHide

Fix/better lock keys hide
This commit is contained in:
Lemmy
2026-02-08 16:54:40 -05:00
committed by GitHub
+11 -10
View File
@@ -66,13 +66,13 @@ Item {
]
onTriggered: action => {
contextMenu.close();
PanelService.closeContextMenu(screen);
contextMenu.close();
PanelService.closeContextMenu(screen);
if (action === "widget-settings") {
BarService.openWidgetSettings(screen, section, sectionWidgetIndex, widgetId, widgetSettings);
}
}
if (action === "widget-settings") {
BarService.openWidgetSettings(screen, section, sectionWidgetIndex, widgetId, widgetSettings);
}
}
}
// Visual capsule centered in parent
@@ -85,6 +85,7 @@ Item {
color: Style.capsuleColor
border.color: Style.capsuleBorderColor
border.width: Style.capsuleBorderWidth
visible: !root.hideWhenOff || (root.showCaps && LockKeysService.capsLockOn) || (root.showNum && LockKeysService.numLockOn) || (root.showScroll && LockKeysService.scrollLockOn)
Item {
id: layout
@@ -145,9 +146,9 @@ Item {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: mouse => {
if (mouse.button === Qt.RightButton) {
PanelService.showContextMenu(contextMenu, root, screen);
}
}
if (mouse.button === Qt.RightButton) {
PanelService.showContextMenu(contextMenu, root, screen);
}
}
}
}