Bug 80644 [KeyBindings] misc: Wrong shortcut displayed in menu for copy using Emacs
Version: 3.1.0 Build id: 200412070800 Copy in Emacs is "Alt-W", the shortcut works perfectly but all the menus in Eclipse show "Ctrl-c" as the copy shortcut, which has other semantics in the Emacs configuration. Similarly, the standard shortcuts to cut and paste text are "Ctrl-w" and "Ctrl-y", but the menus indicate "Shift-Delete" and "Shift-Insert" instead, which work as well but are more difficult to perform and probably less common.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java
switch (event.type) {
                    case SWT.Dispose:
                        handleWidgetDispose(event);
                        break;
                    case SWT.Selection:
                        Widget ew = event.widget;
                        if (ew != null) {
                            handleWidgetSelection(event, ((ToolItem) ew)
                                    .getSelection());
                        }
                        break;
                    }
                }
            };
        }
        return toolItemListener;
    }
    /**
     * Handles a widget dispose event for the widget corresponding to this item.
     */
    private void handleWidgetDispose(Event e) {
        
        if (e.widget == widget) {
            
            if (action.getStyle() == IAction.AS_DROP_DOWN_MENU) {
                IMenuCreator mc = action.getMenuCreator();
                if (mc != null) {
                    mc.dispose();
                }
            }