-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.1
-
generic
-
solaris_2.5.1
All of key events are sent to applications on Text components(TextComponent/
TextFiled/TextArea) without consuming those in text conponents. Application
now can get all key events when key listener is implemented.
Since text components get key events and dispatch text event instead,
text components should consume all of key event. Those shouldn't be sent to applications. This action confuses programmer.
I attached a sample program which gets KeyEvent on the TextField
and print its event type on the command line if it can be.
On runing a sample program, it can get all of key events
when a key is pressed and released. Since TextField dispatchs text events
instead as key input events, keyevent should be consumed and not sent to
its subclass.
TextFiled/TextArea) without consuming those in text conponents. Application
now can get all key events when key listener is implemented.
Since text components get key events and dispatch text event instead,
text components should consume all of key event. Those shouldn't be sent to applications. This action confuses programmer.
I attached a sample program which gets KeyEvent on the TextField
and print its event type on the command line if it can be.
On runing a sample program, it can get all of key events
when a key is pressed and released. Since TextField dispatchs text events
instead as key input events, keyevent should be consumed and not sent to
its subclass.
- relates to
-
JDK-4040458 Need input method support for lightweight components
-
- Closed
-