fix(qml/AppUI): 开始菜单收起再展开时焦点设置在搜索框上
This commit is contained in:
parent
44867bf56e
commit
800977334e
|
@ -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