7081012: REGRESSION:Component.transferFocusBackward invokes clearGlobalFocusOwner()
authordenis
Thu, 01 Sep 2011 17:29:37 +0400
changeset 10410 ebae41687d0b
parent 10409 560001064c49
child 10411 f63e5bab1676
7081012: REGRESSION:Component.transferFocusBackward invokes clearGlobalFocusOwner() Reviewed-by: ant
jdk/src/share/classes/java/awt/Component.java
--- 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");
             }