Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4022670

Ambiguous key events are sent to application on TextComponent/TextFiled/TextArea

XMLWordPrintable

    • 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.

            rramsunw Ranganathan Ram (Inactive)
            kuno Koji Uno
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: