changeset 4533:970ff8d5bbe7

7081012: REGRESSION:Component.transferFocusBackward invokes clearGlobalFocusOwner() Reviewed-by: ant
author denis
date Thu, 01 Sep 2011 17:29:37 +0400
parents 22c60997bf3c
children 25564f7b29c4
files src/share/classes/java/awt/Component.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Component.java	Tue Aug 30 13:07:13 2011 +0400
+++ b/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");
             }