Skip to main content
Represents a text input event.

Fields

text

The input text.

Methods

hit

Claims the text so it goes no further. From a listener action (ListenerContext:asTextInput()), bare hit() stops the text at the listener’s target: on a capture-phase listener, a text input inside its target never inserts it. Typed, pasted and IME text all arrive here, a paste as one string. hit(true) only marks it seen and lets it go on. In a node’s textEvent, hit() stops propagation like returning true.