I am creating an Eclipse plugin and using the SWT popup menu (context menu) for one of the controls in plugin. The context menu item works, but the accelerator (shortcut) that I set for the menu item has no effect and it does not work. I create the menuitem like this:
MenuItem parent = new Menu(getShell(), SWT.POP_UP);
MenuItem menuItem = new MenuItem(parent, SWT.PUSH);
menuItem.setText("Click me");
menuItem.setAccelerator( SWT.CTRL+ 'F');
Note that the shortcut problem occurs for the POP_UP
menu, not the BAR
menu item.