JDK-6446881 : Key events are not dispatched during a drag operation.
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-07-07
  • Updated: 2011-01-19
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
Key events are not dispatched to java.awt.AWTEventListeners registered on the default java.awt.Toolkit when a drag operation is in progress.  If the user presses a key during a drag operation, it is unequivocally true that the user intends to communicate with the application by means of that key press.

If the JVM dispatches key events to AWTEventListeners when a drag operation is not in progress, then it is by virtue of that fact required to also dispatch key events to AWTEventListeners during a drag operation.


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Install a native keyboard agent with the java application.