pub type FocusOnKeyEventCallback = Rc<dyn Fn(&mut App, AnyFocusNode, &KeyEvent) -> KeyEventResult>;Expand description
Signature of a callback used by Focus::on_key_event and FocusScope::on_key_event to
receive key events.
The node is the node that received the event.
Returns a KeyEventResult that describes how, and whether, the key event was handled.
Aliased Typeยง
pub struct FocusOnKeyEventCallback { /* private fields */ }