aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/KeyboardFocusManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/KeyboardFocusManager.java')
-rw-r--r--libjava/java/awt/KeyboardFocusManager.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/libjava/java/awt/KeyboardFocusManager.java b/libjava/java/awt/KeyboardFocusManager.java
index e82c0d4..3ae4dd6 100644
--- a/libjava/java/awt/KeyboardFocusManager.java
+++ b/libjava/java/awt/KeyboardFocusManager.java
@@ -740,8 +740,11 @@ public abstract class KeyboardFocusManager
public final void redispatchEvent (Component target, AWTEvent e)
{
- e.setSource (target);
- dispatchEvent (e);
+ synchronized (e)
+ {
+ e.setSource (target);
+ target.dispatchEvent (e);
+ }
}
public abstract boolean dispatchKeyEvent (KeyEvent e);