Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut keys for the Menu Bar don't always work for languages different than English. #5169

Closed
juanmbt opened this issue Apr 13, 2024 · 4 comments

Comments

@juanmbt
Copy link

juanmbt commented Apr 13, 2024

If you select a language different than English, some of the Menu Bar items are not opened when using the shortcut key (Alt+letter).

To reproduce:

  1. Select a language different than English.
  2. Try to open a Menu Bar item by using the accelerator key (Alt + ).
  3. If the accelerator key does not match the English option it won't open.
    For the File item: Spanish has A for Archivo and it won't open when pressing Alt+A, however French has F for Fichier and it will open with Alt+F as it matches the English shortcut F for File.
    For the Edit item: Spanish as E for Editar, it matches the sortcut in English for Edit and It opens when pressing Alt+E.
@hpwamr
Copy link
Collaborator

hpwamr commented Apr 13, 2024

Hello @juanmbt ,
In what language and what is the list of corrections you want to make? 🤔

2024-04-13_225443_ES_FR

@juanmbt
Copy link
Author

juanmbt commented Apr 14, 2024

Hello @hpwamr,

There are no issues with the translations, but with the funcionality of the Menu Bar when the language is not English.

When I press the Alt key, the menu bar changes and the accelerator letter is displayed as an underlined letter. As per your screenshots, Archivo in Spanish and Fichier in French.

When the language is set to English, pressing Alt+F will open the File Menu, but when the language is switch to Spanish, pressing Alt+A does not open the menu.

However, when the language is set to French Alt+F works, because Fichier uses the same accelerator letter as the menu in English File.

Regards.

@RaiKoHoff
Copy link
Collaborator

RaiKoHoff commented May 26, 2024

This seems to be a misunderstanding:
To access the menu, using the keyboard is not by using the key combination Alt+F (English, French) or Alt+A (Spanish) but using the key sequence (Alt, f resp. Alt, a), which means pressing first Alt to access the menu, then (after releasing the Alt key) you have to press the menu-hotkey (the underlined one, eg. for A press a, for F press f).
Then everything should work fine in menu access for different languages.

The key combination Alt+F (also Alt+E|H|P|S|V) is not mapped in Notepad3, so it is redirected to the menu and has the corresponding effect as pressing Alt, F resp. Alt, E|H|P|S|V, which may have different meanings in different languages.

A solution could be to map all these unmapped Alt+<.> key combinations to a "no operation" (noop), but that would change long lasting behavior for all english speaking users.

BTW: The key combination Alt+A is mapped to switch on/off "mark all occurrences of selected word" .

@juanmbt
Copy link
Author

juanmbt commented May 26, 2024

Ok, I understand now, thanks for explaining.

It's safe to close this issue now.

@hpwamr hpwamr closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants