diff --git a/windowsview/qml/NewDesktopButton.qml b/windowsview/qml/NewDesktopButton.qml index a82db473afa97f6efe808b5c0148bc9765c3c0f3..06f3689f353cc3d72d5c8d285018c7f38ca11b6e 100644 --- a/windowsview/qml/NewDesktopButton.qml +++ b/windowsview/qml/NewDesktopButton.qml @@ -53,6 +53,9 @@ Item { } Keys.onPressed: { + if (rootWindow.isWlcom) { + multitaskViewManager.keyNavigationDataCollect(event.key) + } if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter || event.key === Qt.Key_Space) { newWorkspaceController.onWindowClicked() diff --git a/windowsview/qml/VirtualDesktopWindow.qml b/windowsview/qml/VirtualDesktopWindow.qml index 4b76243521870fe50cb625405c4db11ac798dc41..acc9591fe53edc0675c6f200f78a0d8d8f8cccbf 100644 --- a/windowsview/qml/VirtualDesktopWindow.qml +++ b/windowsview/qml/VirtualDesktopWindow.qml @@ -72,6 +72,9 @@ Item { ] Keys.onPressed: { + if (rootWindow.isWlcom) { + multitaskViewManager.keyNavigationDataCollect(event.key) + } if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter || event.key === Qt.Key_Space) { controller.setCurrentDesktop(root.wid) controller.onWindowClicked(root.wid) diff --git a/windowsview/ukui-window-switch-wlcom/multitaskviewmanagerbywlcom.cpp b/windowsview/ukui-window-switch-wlcom/multitaskviewmanagerbywlcom.cpp index 6a168e9cbbd2aa284f24a4f401da8e5abbfa1001..d925b8328f73a61805f0d72ea77f578a82e268f3 100644 --- a/windowsview/ukui-window-switch-wlcom/multitaskviewmanagerbywlcom.cpp +++ b/windowsview/ukui-window-switch-wlcom/multitaskviewmanagerbywlcom.cpp @@ -92,6 +92,7 @@ bool MultitaskViewManagerByWlcom::isCursorNavigationKey(const int &key) const key == Qt::Key_Right || key == Qt::Key_Up || key == Qt::Key_Down || key == Qt::Key_Home || key == Qt::Key_End || key == Qt::Key_PageUp || + key == Qt::Key_Enter || key == Qt::Key_Return || key == Qt::Key_PageDown) { return true; }