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

MenuItem's InputGesture modifies the text #18182

Open
Leopard20 opened this issue Feb 12, 2025 · 0 comments
Open

MenuItem's InputGesture modifies the text #18182

Leopard20 opened this issue Feb 12, 2025 · 0 comments

Comments

@Leopard20
Copy link

Leopard20 commented Feb 12, 2025

Is your feature request related to a problem? Please describe.

The program I'm designing supports key input sequences, for example, Ctrl + K followed by another key combo, and I wanted to show some of them in the menu for ease of access.

The problem is that the InputGesture property automatically modifies what you put in there, e.g Ctrl + K, S becomes just Ctrl+S (spaces are removed too), or Ctrl+N,S becomes Ctrl+T (key changes completely)

Describe the solution you'd like

If the InputGesture property is just a text and doesn't do anything, I don't see why it changes what you put in there. In my opinion it should just show whatever the programmer intended (even if it parses it to something else)

Describe alternatives you've considered

I guess the reason for parsing is to handle localization of key combos. So another solution is having another property, say, Hint that only shows a text with a muted color (similar to InputGesture) next to the menu (without parsing)

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

1 participant