Improvements Wishlist
Plugin API: expose the built-in keyboard sheet to Cards
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 commentStart the conversation
Share an example, ask a question or explain how you would use this.