Commit c89fb196 authored by Fushan Wen's avatar Fushan Wen 💬 Committed by Nate Graham
Browse files

desktoppackage: don't focus on panel when pressing applet shortcuts

The panel focus shortcut is Meta+Alt+P. This keeps the old behavior.

BUG: 453166
FIXED-IN: 5.25
CCBUG: 352476
parent 2bc13c89
Pipeline #183001 passed with stage
in 7 minutes and 19 seconds
......@@ -248,26 +248,6 @@ Item {
restoreMode: Binding.RestoreBinding
}
Connections {
target: containment
function onActivated() {
containment.status = PlasmaCore.Types.AcceptingInputStatus;
// When the containment is set to AcceptingInputStatus he window will be given focus and
// will try to give focus to an itemof the scene, but not the one we wnant. if we call immediately
// forceActiveFocus on the one we want we'll have a race condition that won't happen if we do it later
Qt.callLater(root.nextItemInFocusChain().forceActiveFocus);
}
}
Connections {
target: parent
function onActiveFocusChanged() {
if (!parent.activeFocus) {
containment.status = PlasmaCore.Types.PassiveStatus
}
}
}
PlasmaCore.FrameSvgItem {
x: root.verticalPanel || !panel.activeFocusItem
? 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment