codecentric / NSMenuFX

Other
128 stars 27 forks source link

Issue while using SHORTCUT in the main applicaton menu #42

Open gowthampr opened 3 years ago

gowthampr commented 3 years ago

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 commented 3 years ago

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