fix(qml/AppUI): 开始菜单收起再展开时焦点设置在搜索框上
This commit is contained in:
parent
231b67a4f9
commit
78207d4eeb
|
@ -22,6 +22,9 @@ FocusScope {
|
|||
|
||||
function forceFocus() {
|
||||
fullScreenUI.focus = true;
|
||||
if (mainWindow.visible) {
|
||||
searchInputBar.textInputFocus();
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
@ -17,6 +17,9 @@ FocusScope {
|
|||
|
||||
function forceFocus() {
|
||||
normalUI.focus = true;
|
||||
if (mainWindow.visible) {
|
||||
appPage.search.changeToSearch("");
|
||||
}
|
||||
}
|
||||
function keyPressed(event) {
|
||||
// 任意字符键焦点切换到搜索(0-9 a-z)
|
||||
|
|
Loading…
Reference in New Issue