JDK-4152760 : keyTyped method incorrectly called for key press events
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.5
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-06-26
  • Updated: 1998-08-31
  • Resolved: 1998-08-31
Related Reports
Duplicate :  
Description

Name: diC59631			Date: 06/26/98


implement the keyListener interface and note
that the keyPressed and keyTyped methods are both
called when a key is pressed. The keyTyped method
should only be called after a keyPress/keyRelease
action (according to the documentation).
(Review ID: 26388)
======================================================================

Comments
EVALUATION eric.hawkes@eng 1998-08-31 According to "The Java Class Libraries, Second edition, Volume 2", page 954 (the section on keyListener), keyTyped() is "Called when a pressed key or key combination generates a key character." So, the sequence of events should be 1) keyPressed 2) keyTyped 3) keyReleased See bugid 4024849 for a response to this issue. There are a number of outstanding bugs on the order of keyEvents. See 4159610 for a good description of the problem.
11-06-2004