Only set initial MenuItem focus if not activating via mouse

Having an initially highlighted item when using mouse navigation
doesn't adhere to UX norms and also can lead to a janky feeling
when the focus flip-flops from the item under the user's cursor
to the first item as the Menu opens.
This commit is contained in:
Cameron Gutman
2026-01-26 23:46:57 -06:00
parent b4a5d21f97
commit 6d40c61850
3 changed files with 13 additions and 6 deletions

View File

@@ -288,6 +288,7 @@ CenteredGridView {
asynchronous: true
sourceComponent: NavigableMenu {
id: appContextMenu
initiator: appContextMenuLoader.parent
NavigableMenuItem {
text: model.running ? qsTr("Resume Game") : qsTr("Launch Game")
onTriggered: launchOrResumeSelectedApp(true)