diff --git a/qml/AppUI/FullScreenAppList.qml b/qml/AppUI/FullScreenAppList.qml index 33d89cb..a3d8937 100644 --- a/qml/AppUI/FullScreenAppList.qml +++ b/qml/AppUI/FullScreenAppList.qml @@ -96,7 +96,7 @@ ListView { text.text: model.name icon.source: model.icon - isRecentInstalled: model.recentInstall + isRecentInstalled: model.recentInstall === undefined ? false : model.recentInstall onClicked: (event) => { if (event.button === Qt.LeftButton) { diff --git a/qml/AppUI/FullScreenUI.qml b/qml/AppUI/FullScreenUI.qml index c1cf4c9..cf2b8c5 100644 --- a/qml/AppUI/FullScreenUI.qml +++ b/qml/AppUI/FullScreenUI.qml @@ -27,6 +27,14 @@ FocusScope { } } + function keyPressed(event) { + if ((0x2f < event.key && event.key < 0x3a)||(0x40 < event.key && event.key < 0x5b)) { + focus = true; + searchInputBar.text = event.text; + searchInputBar.textInputFocus(); + } + } + Item { anchors.fill: parent diff --git a/qml/AppUI/Sidebar.qml b/qml/AppUI/Sidebar.qml index 2a5aacb..a8aa0b3 100644 --- a/qml/AppUI/Sidebar.qml +++ b/qml/AppUI/Sidebar.qml @@ -63,8 +63,10 @@ Item { Keys.onPressed: { if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return) { if (mainWindow.isFullScreen) { + root.currentSearchText = searchInputBar.text; mainWindow.exitFullScreen(); } else { + root.currentSearchText = appPage.search.searchInputBar.text; mainWindow.isFullScreen = true; } } diff --git a/qml/main.qml b/qml/main.qml index dfc063e..c6a599c 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -175,6 +175,10 @@ Item { active = mainWindow.isFullScreen ? true : false; opacity = mainWindow.isFullScreen ? 1 : 0; } + + Keys.onPressed: { + item.keyPressed(event); + } } Component {