| Summary: | SelectableLabel's actions break other actions with same shortcut | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | george fb <georgefb899> |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | notmart |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | Not decided | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
george fb
2024-11-11 18:49:39 UTC
Sample app
```
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
Action {
shortcut: "ctrl+c"
onTriggered: {
console.log(rectangle.color)
rectangle.color = rectangle.color == "#008000" ? "#ff0000" : "#008000"
}
}
ColumnLayout {
Rectangle {
id: rectangle
width: 100
height: 100
color: "#008000"
}
Kirigami.SelectableLabel {
text: "12345"
}
Kirigami.SelectableLabel {
text: "67890"
}
Kirigami.SelectableLabel {
text: "67890"
}
}
}
```
|