JDK-5105044 : Disabled frame triggers keyevents on win32
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-09-21
  • Updated: 2008-02-21
Related Reports
Relates :  
Relates :  
Description
Disabled components are not expected to respond to any of the user inputs. But a disabled frame triggers a key event when a key is pressed. I have added a KeyEventDispatcher and KeyEventPostProcessor to the default KFM. The dispatcher receives the keyevent as soon as a key is pressed. 

This is noticed only on WinXP platform on all releases since 1.4. This is not reproducible on Solaris / Linux with Motif / XToolkit (No events are triggered and dispatcher is not called).

I have attached a sample test. Execute the sample test. A frame will be shown. Press some keys. If you see some keyevents in the console, the bug is reproduced.

Comments
EVALUATION Still reproducible after 5044469 patch.
26-12-2007

EVALUATION Name: ad153231 Date: 09/22/2004 seems to be a duplicate of 5044469 ====================================================================== Name: ad153231 Date: 09/22/2004 should review fix for 5044469 since a problem is similar to the noted in 5044469 with java.awt.Button and is very close to this one. Possible solution is not to check for a particular type of Component and try to filter all the events addressed to disabled Components. This will fix disabled Frames too. ======================================================================
23-09-2004