Improvements Wishlist

Plugin API: expose the built-in keyboard sheet to Cards

keyz182Suggested this wish Β·

Since 0.4.98 (wish #9), Tessera has a great theme-aware on-screen QWERTY keyboard (keyboard::lvgl::Sheet), currently used for built-in input_text tiles.

Full-screen plugin Cards that need text input (for example searching a music library in a Music Assistant plugin, entering a PIN, or editing presets/notes) currently have no way to open that built-in keyboard, forcing each plugin to build its own cramped button grid in LVGL.

Idea: Expose a host wrapper in tessera::ui for plugin Cards:

  • ui::show_keyboard(parent, width, height, top, KeyboardOptions{...}) (initial, hint, send_word, most_bytes, max_chars, min_chars, mask, on_changed, on_send, on_close)
  • ui::hide_keyboard()
  • ui::keyboard_shown()

The host wires the sheet to the card touch guard, refreshes its colours on theme changes, and cleans it up automatically when close_card() runs.

I put together a proposed implementation targeting dev (Plugin API 0.30) here: https://github.com/MaxGramser/homeassistant_espscreen/pull/472

Discussion 0

Add a comment

Start the conversation

Share an example, ask a question or explain how you would use this.

Add your thoughts, a screenshot or a useful link.

Markdown & basic HTML
Paste or drop images Β· URLs on their own line become previews0 / 10,000
Create your account to join in

We need a verified email address to reach you about your contribution. Your address stays private.

Continue with GitHub

Your draft stays in this tab. Return here after verification.