7081012: REGRESSION:Component.transferFocusBackward invokes clearGlobalFocusOwner()

Reviewed-by: ant
This commit is contained in:
Denis Fokin 2011-09-01 17:29:37 +04:00
parent dd72eca1bc
commit 4be64adddd

View File

@ -7910,7 +7910,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
res = toFocus.requestFocusInWindow(CausedFocusEvent.Cause.TRAVERSAL_BACKWARD);
}
}
if (!res) {
if (clearOnFailure && !res) {
if (focusLog.isLoggable(PlatformLogger.FINER)) {
focusLog.finer("clear global focus owner");
}