Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
I have a frame with a button and textfield. When I click the button, I disable both button as well as textfield. But due to forward focus transfer, the disabled text field gains focus. Once it gains focus, I am able to type any text in the textfield and pressing 'ENTER' triggers action event for the text field. But surprisingly, no keyevents are dispatched to the textfield. Disabled components should not respond to any of the keyevents, both visually as well as events wise. This looks pretty ugly where the text is shown in gray color to denote that it is disabled but the user is still able to type anything in the text field. A similar bug was filed against button sometime back and it is fixed for the button (5044469) in the current mustang PIT build (b08). This is reproducible only on Win32 since 1.4.2. Not reproducible on earlier releases. Hence this is a regression in 1.4.2. I have attached a sample test. Execute the sample test. Click on the 'disable' button. Focus will be shifted to the disabled text field. Try typing some text in the text field. If the text field shows the typed characters, the bug is reproduced. ###@###.### 10/19/04 13:26 GMT This is reproducible with Choice and List components as well. Moving the arrow keys on a disabled choice / list changes the item selection. ###@###.### 10/19/04 17:44 GMT
|