Files icon indicating copy to clipboard operation
Files copied to clipboard

Feature: Add access keys to the context menu

Open chaoscreater opened this issue 3 years ago • 6 comments

What's the Problem?

In normal Windows 10 Explorer, you can right click and press an Access Key shortcut on your keyboard to open certain menus.

For example, right click in blank space or right lcick on file/folder and press:

  • 'R' key to open up file/folder Properties menu
  • 'D' key to delete file/folder etc...

Those are not currently supported in Files.

You can check out what Access Keys shortcuts are available by toggling this setting: image

You can see the underlined letter when you right click: image

Solution/Idea

Add Access Keys shortcut support.

Alternatives

no alternatives at the moment.

Priorities

Capability Priority
This proposal will allow developers to accomplish W Must
This proposal will allow end users to accomplish X Should
This proposal will allow developers to accomplish Y Could
This proposal will allow end users to accomplish Z Won't

Files Version

Version: 2.0.34.0

Windows Version

Windows 10 21H2 Build 19044.1348

Comments

No response

chaoscreater avatar Jan 09 '22 00:01 chaoscreater

@winston-de does the command bar flyout support access keys?

yaira2 avatar Jan 09 '22 01:01 yaira2

I'm assuming you mean this? image

Then no, it doesn't and that is exactly the issue. Right click in normal Explorer.exe and then press an access key should trigger something (e.g. open file/folder properties with 'R' key). Right click in Files and then press an access key does not trigger anything.

chaoscreater avatar Jan 09 '22 01:01 chaoscreater

They do work, but the UI isn't great For example, the access key is not underlined like a they are in explorer. The access key also only shows and works when you press alt, and will only show for the part of the CommandBarFlyout that is focused (primary or secondary bar).

image image

We could probably make our own implementation that underlines the letter and listens for key press events to trigger the action.

winston-de avatar Jan 16 '22 21:01 winston-de

@cinqmilleans is this part of the custom actions?

yaira2 avatar Feb 22 '23 22:02 yaira2

We could implement our own TextBlock and MenuFlyoutItem to adopt with the TextBlock. The underlined text is actually created like 'A&dd' and 'D&elete' to notify the win form of the access key's availability.

Do we really need this, btw? Putting underline doesn't sounds right to me.

0x5bfa avatar May 13 '24 13:05 0x5bfa

The latest design from WinUI doesn't seem to use underlines. the main thing is that they should display when pressing alt.

yaira2 avatar May 13 '24 14:05 yaira2