View | Details | Raw Unified | Return to bug 236735 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/ui/forms/widgets/FormText.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2007 IBM Corporation and others.
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 1469-1477 Link Here
1469
						break;
1469
						break;
1470
					valid = setControlFocus(advance, selectable);
1470
					valid = setControlFocus(advance, selectable);
1471
				}
1471
				}
1472
				if (selectable == null)
1472
				if (selectable != null)
1473
					setFocusToNextSibling(this, true);
1474
				else
1475
					ensureVisible(selectable);
1473
					ensureVisible(selectable);
1476
				if (selectable instanceof IHyperlinkSegment) {
1474
				if (selectable instanceof IHyperlinkSegment) {
1477
					enterLink((IHyperlinkSegment) selectable, SWT.NULL);
1475
					enterLink((IHyperlinkSegment) selectable, SWT.NULL);
Lines 1702-1709 Link Here
1702
	 * @see org.eclipse.swt.widgets.Control#setFocus()
1700
	 * @see org.eclipse.swt.widgets.Control#setFocus()
1703
	 */
1701
	 */
1704
	public boolean setFocus() {
1702
	public boolean setFocus() {
1703
		mouseFocus = true;
1705
		FormUtil.setFocusScrollingEnabled(this, false);
1704
		FormUtil.setFocusScrollingEnabled(this, false);
1706
		boolean result = super.setFocus();
1705
		boolean result = super.setFocus();
1706
		mouseFocus = false;
1707
		FormUtil.setFocusScrollingEnabled(this, true);
1707
		FormUtil.setFocusScrollingEnabled(this, true);
1708
		return result;
1708
		return result;
1709
	}
1709
	}

Return to bug 236735