[plasma/kscreen] osd/qml: osd: trigger Configure button on Enter, too
Nate Graham <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 3b0b9cdf119534c98cfc51dabbbc606e923d1428 by Nate Graham.
Committed on 24/07/2026 at 17:29.
Pushed by ngraham into branch 'master'.
osd: trigger Configure button on Enter, too
The big buttons already trigger on both Space and Enter, but the
Configure button does not.
This is because it's outside of the repeater that creates all the other
buttons, so it needs special handling.
BUG: 515214
FIXED-IN: 6.6.7
M +5 -1 osd/qml/OsdSelector.qml
https://invent.kde.org/plasma/kscreen/-/commit/3b0b9cdf119534c98cfc51dabbbc606e923d1428
diff --git a/osd/qml/OsdSelector.qml b/osd/qml/OsdSelector.qml
index 1aef4808..92c4377f 100644
--- a/osd/qml/OsdSelector.qml
+++ b/osd/qml/OsdSelector.qml
@@ -140,7 +140,11 @@ Control {
switch (event.key) {
case Qt.Key_Return:
case Qt.Key_Enter:
- root.clicked(actionRepeater.itemAt(actionRepeater.currentIndex).actionId) // qmllint disable missing-property
+ if (actionRepeater.currentIndex === actionRepeater.count) {
+ configureButton.animateClick();
+ } else {
+ root.clicked(actionRepeater.itemAt(actionRepeater.currentIndex).actionId) // qmllint disable missing-property
+ }
break
case Qt.Key_Right:
case Qt.Key_Left: