Skip to main content

keycap

Function keycap 

Source
pub fn keycap<'a, Message: 'a>(
    label: impl IntoFragment<'a>,
    scale: FontScale,
) -> Element<'a, Message>
Expand description

One key of a chord, as a cap: SUPER, SHIFT, ⏎.

A chord is drawn as a row of these rather than as SUPER + SHIFT + S in a line of text, because the caps are what make a key binding scannable down a table — the eye finds the shape before reading the word.