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() { function forceFocus() {
fullScreenUI.focus = true; fullScreenUI.focus = true;
if (mainWindow.visible) {
searchInputBar.textInputFocus();
}
} }
Item { Item {

View File

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