Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 223892
Collapse All | Expand All

(-)src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java (+11 lines)
Lines 627-630 Link Here
627
		return new Point(widthInChars * width, heightInChars * height);
627
		return new Point(widthInChars * width, heightInChars * height);
628
	}
628
	}
629
629
630
	/*
631
	 * @see org.eclipse.jface.text.AbstractInformationControl#setFocus()
632
	 */
633
	public void setFocus() {
634
		if ("carbon".equals(SWT.getPlatform())) //$NON-NLS-1$
635
			// Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=89820 :
636
			// Don't set focus to browser widget to avoid losing keyboard control.
637
			getShell().forceFocus();
638
		else
639
			super.setFocus();
640
	}
630
}
641
}

Return to bug 223892