Skip to content

Improve keyboard navigation in context menus - #1155

Merged
TheOneRing merged 1 commit into
mainfrom
work/contextmenus
Oct 8, 2026
Merged

TheOneRing merged 1 commit into
mainfrom
work/contextmenus

Conversation

@fracturehill

Copy link
Copy Markdown
Contributor

The context menus for folders/spaces and under the "Manage Account" button contain extra items that may be made invisible. However, using the arrow keys on a keyboard may still "highlight" them, which to a user looks like the context menu losing focus.

This commit sets the "enabled" property of all such items to false whenever they're invisible, so keyboard navigation skips them.

onTriggered: OCUtils.setClipBoardFromFilePath(folderDelegate.folder.path)
visible: contextMenu.shiftPressed
height: visible ? implicitHeight : 0
enabled: visible

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I already learned something... so invisible elements must not only be manually collapsed but disabled to prevent issues ... 🤯

@TheOneRing TheOneRing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fracturehill
fracturehill force-pushed the work/contextmenus branch 2 times, most recently from 296e905 to 8a9c268 Compare October 7, 2026 14:09
The context menus for folders/spaces and under the "Manage Account"
button contain extra items that may be made invisible. However,
using the arrow keys on a keyboard may still "highlight" them,
which to a user looks like the context menu losing focus.

This commit sets the "enabled" property of all such items to false
whenever they're invisible, so keyboard navigation skips them.
@TheOneRing
TheOneRing merged commit 6f5a266 into main Oct 8, 2026
@TheOneRing
TheOneRing deleted the work/contextmenus branch October 8, 2026 11:52
@openclouders openclouders mentioned this pull request Nov 13, 2026
1 task
@saw-jan saw-jan mentioned this pull request Nov 25, 2026
9 of 22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants