Opal::UI::InputHookable
Module that equips UI components with per-control input lifecycle hooks, custom input overrides, and code puppeting capabilities.
Instance methods
Sets whether unhandled events in custom input hooks fall back to standard default inputs.
Executes the default input logic for this control.
Routes an incoming input event through custom hooks or default handlers.
Default key event handler. Override in subclasses if not using @default_input_proc.
Default mouse event handler. Override in subclasses if not using @default_input_proc.
Attaches a custom input hook to this control.
The block receives self (strongly typed to the control class) and the InputEvent.
Returning true consumes the event. Returning false allows fallback to default inputs
(if fallback_to_defaults? is true).
Lifecycle hook: Configures default keyboard and mouse behaviors. May be overridden by subclasses to establish or reset component-specific default input bindings.