Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frame/qml/PanelMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Item {
menuWindow.title = windowTitle
menuWindow.show()
DS.grabMouse(menuWindow)
DS.grabKeyboard(menuWindow)
})
}

Expand All @@ -75,6 +76,7 @@ Item {

menuWindow.close()
menuWindow.currentItem = null
DS.grabKeyboard(menuWindow, false)
}

Connections {
Expand Down
4 changes: 3 additions & 1 deletion panels/dock/tray/TrayItemSurfacePopup.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -162,6 +162,8 @@ Item {
return Qt.rect(point.x, point.y, popupMenu.width, popupMenu.height)
})
popupMenu.open()
// TODO: 解决自定义右键菜单上下键无法切换的问题
popupMenuContent.takeFocus()
}
}
}
Expand Down
Loading