fix(qml/AppUI): 开始菜单收起再展开时焦点设置在搜索框上

This commit is contained in:
youdiansaodongxi 2024-07-01 10:59:40 +08:00
parent 44867bf56e
commit 800977334e
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,9 @@ FocusScope {
function forceFocus() {
fullScreenUI.focus = true;
if (mainWindow.visible) {
searchInputBar.textInputFocus();
}
}
Item {

View File

@ -17,6 +17,9 @@ FocusScope {
function forceFocus() {
normalUI.focus = true;
if (mainWindow.visible) {
appPage.search.changeToSearch("");
}
}
function keyPressed(event) {
// 0-9 a-z