Commit 08990544 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Nate Graham
Browse files

Set keyboard focus to the applet when expanding or switching the active applet

Currently, applet can lose keyboard focus if you click on one of the buttons in its header, after which if you collapse and expand the applet again, the focus will remain on this button. This is extremely inconvenient if you prefer to use the keyboard to work with the applet (for example, with the Clipboard applet). This patch set keyboard focus back to the applet after switching the active applet (as well as after collapsing/expanding it).
parent 629228b9
......@@ -71,6 +71,13 @@ StackView {
onCurrentItemChanged: {
if (currentItem !== null && plasmoid.expanded) {
Connections {
target: plasmoid
function onAppletRemoved(applet) {
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