7081012: REGRESSION:Component.transferFocusBackward invokes clearGlobalFocusOwner()
Reviewed-by: ant
--- a/jdk/src/share/classes/java/awt/Component.java Tue Aug 30 13:07:13 2011 +0400
+++ b/jdk/src/share/classes/java/awt/Component.java Thu Sep 01 17:29:37 2011 +0400
@@ -7910,7 +7910,7 @@
res = toFocus.requestFocusInWindow(CausedFocusEvent.Cause.TRAVERSAL_BACKWARD);
}
}
- if (!res) {
+ if (clearOnFailure && !res) {
if (focusLog.isLoggable(PlatformLogger.FINER)) {
focusLog.finer("clear global focus owner");
}