Skip to main content

Module passcode_keyboard

Module passcode_keyboard 

Expand description

A keyboard drawn on the screen for entering a passcode by touch.

Where no input method may run — the greeter before any session, the session’s lock screen — a touch-only device still needs a way to type a passcode. This is that keyboard as a model, a layout and a paint, for the trusted surface that owns the passcode to draw itself: nothing outside it sees a key. It types letters, digits and symbols, with a one-shot shift and a symbols layer, and it never predicts, corrects or remembers.

Structs§

PasscodeKeyboard
The keyboard’s state: which layer shows and whether the next letter is a capital. Small and Copy, so a surface can keep it beside its own state.

Enums§

PasscodeInput
What a key press asks of the passcode.
PasscodeKey
One key of the keyboard.