Jagoda Estera Ślązak 861fbdf5cf
docs(examples): fix a typo (#1890)
Makes CI typos check pass again
2025-06-03 14:55:23 +03:00

1.1 KiB

Input Form example

This example demonstrates how to handle input across several form fields (2 strings and an number). It uses an enum to track the focused field, and sends keyboard events to one which is current.

Run this example with:

cargo run -p input-form

This example does not handle things like cursor movement within the line (just keys and backspace). Most apps would benefit from using the following crates for text input rather than directly using strings:

Some more ideas for handling focus can be found in: