changeset 4376:a141f7ccdc5b

7081012: REGRESSION:Component.transferFocusBackward invokes clearGlobalFocusOwner() Reviewed-by: ant
author denis
date Wed, 07 Sep 2011 15:57:12 +0400
parents d8b5c0186736
children f147294d1b42 c17d659cd01a
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	Wed Sep 07 15:47:47 2011 +0400
+++ b/src/share/classes/java/awt/Component.java	Wed Sep 07 15:57:12 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");
             }