Skip to main content

Module symbol_pad

Module symbol_pad 

Source
Expand description

The symbol pad: a button for every symbol a formula needs, beside a typed answer.

A click types its symbol at the caret of the field it names (target), replacing a selection, and leaves the caret after it with the field still focused, so the learner goes on typing. A pointer press never takes the focus from the field; a keyboard press (Enter or Space on a focused button) types the symbol and hands the focus back. The buttons and their meanings come from crate::composer.

Re-exports§

pub use SymbolPad_completions::Component::SymbolPad;

Structs§

SymbolPadProps
Properties for the SymbolPad component.

Functions§

SymbolPad
A button for every symbol, typing into the field whose id is target. on_input hears the field’s new text, the same way the field’s own oninput does.