mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-30 14:00:36 +00:00
Don't allow focus on invisible menu items
This commit is contained in:
@@ -5,6 +5,7 @@ MenuItem {
|
|||||||
// Ensure focus can't be given to an invisible item
|
// Ensure focus can't be given to an invisible item
|
||||||
enabled: visible
|
enabled: visible
|
||||||
height: visible ? implicitHeight : 0
|
height: visible ? implicitHeight : 0
|
||||||
|
focusPolicy: visible ? Qt.TabFocus : Qt.NoFocus
|
||||||
|
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
triggered()
|
triggered()
|
||||||
|
|||||||
Reference in New Issue
Block a user