Don't keyboard-focus invisible HMenuItems

This commit is contained in:
miruka 2020-06-24 16:47:51 -04:00
parent b9f8740954
commit 72bd78c77e
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ MenuItem {
topPadding: spacing / 1.75 topPadding: spacing / 1.75
bottomPadding: topPadding bottomPadding: topPadding
height: visible ? implicitHeight : 0 height: visible ? implicitHeight : 0
enabled: visible // prevent focusing invisible items by using keyboard
icon.color: theme.icons.colorize icon.color: theme.icons.colorize

View File

@ -0,0 +1,3 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="m12 18c1.657 0 3 1.343 3 3s-1.343 3-3 3-3-1.343-3-3 1.343-3 3-3zm0-9c1.657 0 3 1.343 3 3s-1.343 3-3 3-3-1.343-3-3 1.343-3 3-3zm0-9c1.657 0 3 1.343 3 3s-1.343 3-3 3-3-1.343-3-3 1.343-3 3-3z"/>
</svg>

After

Width:  |  Height:  |  Size: 296 B