mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-13 21:02:28 +00:00
Don't allow focus on invisible menu items
This commit is contained in:
parent
1fd099db70
commit
48e78d2cd3
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +5,7 @@ MenuItem {
|
|||
// Ensure focus can't be given to an invisible item
|
||||
enabled: visible
|
||||
height: visible ? implicitHeight : 0
|
||||
focusPolicy: visible ? Qt.TabFocus : Qt.NoFocus
|
||||
|
||||
Keys.onReturnPressed: {
|
||||
triggered()
|
||||
|
|
Loading…
Reference in a new issue