pub fn handle_event(
ctx: &ComponentContext<'_>,
event: &InputEvent,
) -> Option<EventResult>Expand description
Handle a key-press for a Button (fires its action on Enter).
pub fn handle_event(
ctx: &ComponentContext<'_>,
event: &InputEvent,
) -> Option<EventResult>Handle a key-press for a Button (fires its action on Enter).