From 72bd78c77e8e47650eb77ce2d470961a9250a813 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 24 Jun 2020 16:47:51 -0400 Subject: [PATCH] Don't keyboard-focus invisible HMenuItems --- src/gui/Base/HMenuItem.qml | 1 + src/icons/thin/device-action-menu.svg | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 src/icons/thin/device-action-menu.svg diff --git a/src/gui/Base/HMenuItem.qml b/src/gui/Base/HMenuItem.qml index 57cc670e..7dfc3822 100644 --- a/src/gui/Base/HMenuItem.qml +++ b/src/gui/Base/HMenuItem.qml @@ -11,6 +11,7 @@ MenuItem { topPadding: spacing / 1.75 bottomPadding: topPadding height: visible ? implicitHeight : 0 + enabled: visible // prevent focusing invisible items by using keyboard icon.color: theme.icons.colorize diff --git a/src/icons/thin/device-action-menu.svg b/src/icons/thin/device-action-menu.svg new file mode 100644 index 00000000..1de1c096 --- /dev/null +++ b/src/icons/thin/device-action-menu.svg @@ -0,0 +1,3 @@ + + +