Commit 1466a873 authored by Eike Hein's avatar Eike Hein

Fix keyboard navigation not working after opening Folder View popup.

Summary: BUG:388528

Reviewers: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D9668
parent 31b9283f
......@@ -29,7 +29,7 @@ import org.kde.kquickcontrolsaddons 2.0
import org.kde.private.desktopcontainment.folder 0.1 as Folder
import "FolderTools.js" as FolderTools
Item {
FocusScope {
id: main
signal pressed
......
......@@ -139,12 +139,17 @@ Item {
target: plasmoid
onExpandedChanged: {
if (root.isPopup && !plasmoid.expanded) {
goHome();
folderView.currentIndex = -1;
folderView.model.clearSelection();
folderView.cancelRename();
if (root.isPopup) {
if (plasmoid.expanded) {
folderView.currentIndex = -1;
folderView.forceActiveFocus();
} else {
goHome();
folderView.currentIndex = -1;
folderView.model.clearSelection();
folderView.cancelRename();
}
}
}
......@@ -207,6 +212,7 @@ Item {
anchors.fill: parent
focus: true
isRootView: true
url: plasmoid.configuration.url
......
Markdown is supported
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