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/CodeAssistConfigurationBlock.java
Label label= (Label) fLabels.get(control);
		if (label != null)
			label.setEnabled(enabled);
	}
	private Control getControl(Key key) {
		for (int i= fComboBoxes.size() - 1; i >= 0; i--) {
			Control curr= (Control) fComboBoxes.get(i);
			ControlData data= (ControlData) curr.getData();
			if (key.equals(data.getKey())) {
				return curr;
			}
		}
		for (int i= fCheckBoxes.size() - 1; i >= 0; i--) {
			Control curr= (Control) fCheckBoxes.get(i);
			ControlData data= (ControlData) curr.getData();
			if (key.equals(data.getKey())) {
				return curr;
			}
		}
		for (int i= fTextBoxes.size() - 1; i >= 0; i--) {
			Control curr= (Control) fTextBoxes.get(i);
			Key currKey= (Key) curr.getData();
			if (key.equals(currKey)) {
				return curr;
			}
		}
		return null;		
	}
}