diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-01-10 15:59:36 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-01-10 15:59:36 +0000 |
commit | e2880df85352a4f46c1fc8b28c4cd08540a2daed (patch) | |
tree | aee81230bdbf73bd817662e0ce7a4665939ab41d /java/awt/Component.java | |
parent | 05f169147352fa3eeb9726f3d57597a83eb7d64d (diff) | |
download | classpath-e2880df85352a4f46c1fc8b28c4cd08540a2daed.tar.gz |
2006-01-10 Andrew John Hughes <gnu_andrew@member.fsf.org>
Merge of HEAD --> generics branch for the period
2005/11/27 to 2006/01/09.
Diffstat (limited to 'java/awt/Component.java')
-rw-r--r-- | java/awt/Component.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/java/awt/Component.java b/java/awt/Component.java index dfc49f386..7d4346582 100644 --- a/java/awt/Component.java +++ b/java/awt/Component.java @@ -4792,7 +4792,12 @@ p * <li>the set of backward traversal keys void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); - + // This boolean tells us not to process focus events when the focus + // opposite component is the same as the focus component. + boolean ignoreFocus = + (e instanceof FocusEvent && + ((FocusEvent)e).getComponent() == ((FocusEvent)e).getOppositeComponent()); + if (oldEvent != null) postEvent (oldEvent); @@ -4823,7 +4828,8 @@ p * <li>the set of backward traversal keys break; } } - if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE) + if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE + && !ignoreFocus) processEvent(e); } |