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"));
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"));