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…
Add table
Add a link
Reference in a new issue