jdk/src/share/classes/java/awt/Container.java
changeset 13652 42544e68dc39
parent 12666 0799075de9d6
child 15318 607db339afcc
--- a/jdk/src/share/classes/java/awt/Container.java	Fri Aug 31 14:49:23 2012 +0400
+++ b/jdk/src/share/classes/java/awt/Container.java	Fri Aug 31 16:31:29 2012 +0400
@@ -2863,7 +2863,7 @@
 
         // keep the KeyEvents from being dispatched
         // until the focus has been transfered
-        long time = Toolkit.getEventQueue().getMostRecentEventTime();
+        long time = Toolkit.getEventQueue().getMostRecentKeyEventTime();
         Component predictedFocusOwner = (Component.isInstanceOf(this, "javax.swing.JInternalFrame")) ? ((javax.swing.JInternalFrame)(this)).getMostRecentFocusOwner() : null;
         if (predictedFocusOwner != null) {
             KeyboardFocusManager.getCurrentKeyboardFocusManager().