Bug 94643 [preferences] Java Editor Preferences page: mnemonics only work on second stroke
I20050509-2010 On the Java > Editor preference page, I have to press a mnemonic twice to make it really work. E.g. - click on "Mark Occurrences", press Alt+O -> focus is somewhere "between" tab and contents - press Alt+O again -> checkbox gets switched now
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ScrolledPageContent.java
setExpandHorizontal(true);
		setExpandVertical(true);
		setContent(new Composite(this, SWT.NONE));
		addListener(SWT.Activate, new Listener() {
			public void handleEvent(Event event) {
				if (event.type == SWT.Activate) {
					forceFocus();
				}
			}
		});
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.swt.widgets.Widget#dispose()
	 */
	public void dispose() {
		fToolkit.dispose();
		super.dispose();
	}
	
	public void adaptChild(Control childControl) {
		fToolkit.adapt(childControl, true, true);
	}
	
	public Composite getBody() {
		return (Composite) getContent();
	}
}