Skip to content

Commit 28cf8d9

Browse files
authored
Revert "fix: set focus to search edit when launcher becomes visible"
This reverts commit a8dd424.
1 parent 2d86aee commit 28cf8d9

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

qml/FullscreenFrame.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -883,12 +883,8 @@ InputEventItem {
883883
Connections {
884884
target: LauncherController
885885
function onVisibleChanged() {
886-
if (LauncherController.visible) {
887-
searchEdit.forceActiveFocus()
888-
return
889-
}
890-
891886
// only do these clean-up steps on launcher get hide
887+
if (LauncherController.visible) return
892888
// clear searchEdit text
893889
searchEdit.text = ""
894890
if (listviewPage.currentItem) {

qml/windowed/WindowedFrame.qml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,9 @@ InputEventItem {
303303
Connections {
304304
target: LauncherController
305305
function onVisibleChanged() {
306-
if (LauncherController.visible) {
307-
bottomBar.searchEdit.forceActiveFocus()
308-
return
309-
}
310-
311306
// only do these clean-up steps on launcher get hide
307+
if (LauncherController.visible) return
308+
312309
// clear searchEdit text
313310
bottomBar.searchEdit.text = ""
314311
// reset(remove) keyboard focus

0 commit comments

Comments
 (0)