Skip to content

Commit 180505e

Browse files
committed
revert: remove automatic focus setting on launcher visibility
This reverts commit a8dd424. Remove the forceActiveFocus() call on search edit when launcher becomes visible, restoring the previous behavior where focus management was handled differently. 回退自动设置启动器可见时的焦点功能。移除启动器可见时对搜索框调用 forceActiveFocus() 的代码,恢复之前的焦点管理行为。 PMS: BUG-301743
1 parent a8dd424 commit 180505e

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)