Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions qml/FullscreenFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,15 @@ InputEventItem {
Connections {
target: LauncherController
function onVisibleChanged() {
// only do these clean-up steps on launcher get hide
if (LauncherController.visible) return
if (LauncherController.visible) {
baseLayer.forceActiveFocus()
Qt.callLater(() => {
if (!baseLayer.activeFocus) {
console.warn("[LaunchpadFocus] FullscreenFrame: BUG_WARNING - baseLayer failed to acquire activeFocus after forceActiveFocus()!")
}
})
return
}
// clear searchEdit text
searchEdit.text = ""
if (listviewPage.currentItem) {
Expand Down
11 changes: 9 additions & 2 deletions qml/windowed/WindowedFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,15 @@ InputEventItem {
Connections {
target: LauncherController
function onVisibleChanged() {
// only do these clean-up steps on launcher get hide
if (LauncherController.visible) return
if (LauncherController.visible) {
baseLayer.forceActiveFocus()
Qt.callLater(() => {
if (!baseLayer.activeFocus) {
console.warn("[LaunchpadFocus] WindowedFrame: BUG_WARNING - baseLayer failed to acquire activeFocus after forceActiveFocus()!")
}
})
return
}

// clear searchEdit text
bottomBar.searchEdit.text = ""
Expand Down
Loading