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

shell: fix pressing enter not activating the new window

In panelview.cpp, the old window focus is restored when switching to
Passive status. This fixes the behavior by setting the panel status to a
status that is not AcceptingInputStatus.

BUG: 454729
CCBUG: 352476
FIXED-IN: 5.25
parent 79bcefdd
Pipeline #184522 passed with stage
in 7 minutes and 35 seconds
......@@ -95,7 +95,8 @@ PanelView::PanelView(ShellCorona *corona, QScreen *targetScreen, QWindow *parent
// FEATURE 352476: cancel focus on the panel when clicking outside
connect(this, &PanelView::activeFocusItemChanged, this, [this] {
if (containment()->status() == Plasma::Types::AcceptingInputStatus && !activeFocusItem()) {
containment()->setStatus(Plasma::Types::PassiveStatus);
// BUG 454729: avoid switching to PassiveStatus in keyboard navigation
containment()->setStatus(Plasma::Types::ActiveStatus);
}
});
......
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