Open chaoscreater opened 2 years ago
@winston-de does the command bar flyout support access keys?
I'm assuming you mean this?
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.
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).
We could probably make our own implementation that underlines the letter and listens for key press events to trigger the action.
@cinqmilleans is this part of the custom actions?
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.
The latest design from WinUI doesn't seem to use underlines. the main thing is that they should display when pressing alt.
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:
Those are not currently supported in Files.
You can check out what Access Keys shortcuts are available by toggling this setting:
You can see the underlined letter when you right click:
Solution/Idea
Add Access Keys shortcut support.
Alternatives
no alternatives at the moment.
Priorities
Files Version
Version: 2.0.34.0
Windows Version
Windows 10 21H2 Build 19044.1348
Comments
No response