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

KeyEvents that controls should consume, are not consumed

XMLWordPrintable

      In theory, if a control handles the "enter" key stroke, then what should happen:

        (1) onKeyPressed, onKeyReleased, onKeyTyped methods on the Control should get called before the skin
        (2) If the skin handles any of KEY_PRESSED or KEY_RELEASED or KEY_TYPED, for a specific event, then it should consume all three events in the sequence
        (3) The event should not bubble up beyond the control

      Right now, (2) is not the case. We only consume the actual event we process, which can mean key press is consumed but key typed and key released are bubbled.

            jgiles Jonathan Giles
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: