Localized AccessKey #811
vgromfeld
started this conversation in
Experiments
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem statement
By default, WinUI requires the user to type exactly the requested access key sequence to trigger an access key.
The mapping is done using the characters not the key codes.
Not all characters can be typed on all keyboard layouts.
For example, the latin character "V" is not available on the Greek keyboard layout. It is replaced by "Ω".
This means that a button defined with the following XAML fragment won't be reachable through its access key when using a Greek keyboard.
The user will have to switch the the English (or any other latin) keyboard layout to be able to type "V".
Inspiration
A few Windows 1st party applications are already supporting localized access keys:
Paint with a French keyboard

Paint with a Greek keyboard

Proposed solution
Add a new markup extension which will allow developers to define a sequence of
VirtualKeyinstead of characters. This sequence ofVirtualKeywhich will be converted to localized keyboard characters allowing all users to use the access keys.Result

Beta Was this translation helpful? Give feedback.
All reactions