From 48e78d2cd34a7c5c1d15d571eedf907822934c15 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 9 Feb 2019 19:21:43 -0800 Subject: [PATCH] Don't allow focus on invisible menu items --- app/gui/NavigableMenuItem.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/gui/NavigableMenuItem.qml b/app/gui/NavigableMenuItem.qml index acad39ce..1de35f8d 100644 --- a/app/gui/NavigableMenuItem.qml +++ b/app/gui/NavigableMenuItem.qml @@ -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()