accept

@ApiStatus.Internal
fun accept(event: Event): Boolean

accept a keystroke event. This will call all keybindings that match the event.

This method is public, but marked as internal. This is because it should only be called by the PolyUI instance, unless you are trying to externally force a keypress (which you probably shouldn't be)


@ApiStatus.Internal
fun accept(key: Int, down: Boolean): Boolean

accept an unmapped keystroke event. This will call all keybindings that match the event.

This method is public, but marked as internal. This is because it should only be called by the PolyUI instance, unless you are trying to externally force a keypress (which you probably shouldn't be)