mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-14 05:12:27 +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
|
// 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()
|
||||||
|
|
Loading…
Reference in a new issue