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

Key-binding does not show in menu if the key-binding specifies parameter for the command #453

Open
anishthecoder opened this issue Jan 22, 2023 · 0 comments

Comments

@anishthecoder
Copy link
Contributor

Let's say I have a command to exit-application. Assume this command takes an optional parameter request-confirmation. In the appropriate key-binding context, key-binding M1+Q is defined to trigger the this command. If no parameter value for request-confirmation is specified with this binding, the shortcut (Ctrl+Q) appears in the menu where there is a menu item triggering this same command.

However, if a parameter value is added to the same key-binding, the shortcut no longer appears. The actual key-binding still works and the command is executed correctly with the appropriate parameter value when using the key-binding.

The problem appears to be in

When the menu item is being rendered, this line does not find the key-binding for the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant