Skip to main content

default_focusable

Function default_focusable 

Source
pub fn default_focusable(kind: WidgetKind) -> bool
Expand description

Whether a widget kind is keyboard-focusable by default.

Layout, decoration, and static display kinds are not focusable; interactive controls are. The match is exhaustive on purpose: adding a WidgetKind fails to compile until its default has been chosen.