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

Issue while using SHORTCUT in the main applicaton menu #42

Open
gowthampr opened this issue Feb 21, 2021 · 1 comment
Open

Issue while using SHORTCUT in the main applicaton menu #42

gowthampr opened this issue Feb 21, 2021 · 1 comment

Comments

@gowthampr
Copy link

gowthampr commented Feb 21, 2021

Hallo Team ,

There is an issue when I use the shortcut with any menuitem present in the app menu, it never shows the command key. But if use the same in anyother menu which I have created it shows proper command key, Also the shift command doesnt work with any of the menuitems.

Example :

Appmenu (Menu with APP NAME) -> menuitem1 with keycombination SHORTCUT+B (which should display as command key and B, only displays B). If use META_DOWN instead of SHORTCUT it shows the command key.
Viewmenu -> menuitem1 with keycombination SHORTCUT+C (Shows proper command key and C)

I'm using the below method and passing the key combination as String as shown above.
item.setAccelerator(KeyCombination.keyCombination("SHORTCUT+B"));

@0x4a616e
Copy link
Contributor

0x4a616e commented Apr 9, 2021

Have you tried https://github.com/0x4a616e/NSMenuFX ?

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

2 participants